Emacs: optimized loading slightly

This commit is contained in:
Marcel Kapfer 2018-08-18 05:27:40 +02:00
parent 8123e593bc
commit d25c545b13
Signed by: mmk2410
GPG key ID: CADE6F0C09F21B09

View file

@ -302,6 +302,7 @@
;; Manage and navigate projects in Emacs easily ;; Manage and navigate projects in Emacs easily
(use-package projectile (use-package projectile
:diminish projectile-mode :diminish projectile-mode
:defer t
:config :config
(projectile-global-mode) (projectile-global-mode)
(setq projectile-completion-system 'ivy)) (setq projectile-completion-system 'ivy))
@ -315,7 +316,8 @@
;; origami ;; origami
;; Flexible text folding ;; Flexible text folding
(use-package origami) (use-package origami
:defer t)
;; multiple-cursors ;; multiple-cursors
;; Multiple cursors for Emacs ;; Multiple cursors for Emacs
@ -585,6 +587,7 @@
;; pdf-tools ;; pdf-tools
;; Support library for PDF documents. ;; Support library for PDF documents.
(use-package pdf-tools (use-package pdf-tools
:defer t
:config :config
(pdf-tools-install)) (pdf-tools-install))
@ -1097,6 +1100,7 @@ signature-file is the path to the file which contains the signature."
;; elfeed ;; elfeed
;; emacs feed reader ;; emacs feed reader
(use-package elfeed (use-package elfeed
:defer t
:config :config
(defun elfeed-search-format-date (date) (defun elfeed-search-format-date (date)
(format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date)))) (format-time-string "%Y-%m-%d %H:%M" (seconds-to-time date))))
@ -1180,6 +1184,7 @@ signature-file is the path to the file which contains the signature."
;; Integrated environment for TeX ;; Integrated environment for TeX
(use-package tex-buf (use-package tex-buf
:ensure auctex :ensure auctex
:defer t
;; Don't ask for confirmation when saving before processing ;; Don't ask for confirmation when saving before processing
:config (setq TeX-save-query nil)) :config (setq TeX-save-query nil))
@ -1187,6 +1192,7 @@ signature-file is the path to the file which contains the signature."
;; Integrated environment for TeX ;; Integrated environment for TeX
(use-package tex-style (use-package tex-style
:ensure auctex :ensure auctex
:defer t
:config :config
;; Enable support for csquotes ;; Enable support for csquotes
(setq LaTeX-csquotes-close-quote "}" (setq LaTeX-csquotes-close-quote "}"
@ -1196,18 +1202,20 @@ signature-file is the path to the file which contains the signature."
;; Integrated environment for TeX ;; Integrated environment for TeX
(use-package tex-fold (use-package tex-fold
:ensure auctex :ensure auctex
:defer t
:init (add-hook 'TeX-mode-hook #'TeX-fold-mode)) :init (add-hook 'TeX-mode-hook #'TeX-fold-mode))
;; LaTeX with AUCTeX ;; LaTeX with AUCTeX
;; Integrated environment for TeX ;; Integrated environment for TeX
(use-package tex-mode (use-package tex-mode
:ensure auctex) :ensure auctex
:defer t)
;; LaTeX with AUCTeX ;; LaTeX with AUCTeX
;; Integrated environment for TeX ;; Integrated environment for TeX
(use-package latex (use-package latex
:ensure auctex :ensure auctex
:defer nil :defer t
:config :config
;; No language-specific hyphens please ;; No language-specific hyphens please
(setq LaTeX-babel-hyphen nil) (setq LaTeX-babel-hyphen nil)
@ -1245,6 +1253,7 @@ signature-file is the path to the file which contains the signature."
;; bibtex ;; bibtex
;; BibTeX editing ;; BibTeX editing
(use-package bibtex (use-package bibtex
:after (latex)
;; Use a modern BibTeX dialect ;; Use a modern BibTeX dialect
:config (bibtex-set-dialect 'biblatex) :config (bibtex-set-dialect 'biblatex)
;; Run prog mode hooks for bibtex ;; Run prog mode hooks for bibtex
@ -1253,6 +1262,7 @@ signature-file is the path to the file which contains the signature."
;; reftex ;; reftex
;; TeX cross-reference management ;; TeX cross-reference management
(use-package reftex (use-package reftex
:after (latex)
:diminish reftex-mode :diminish reftex-mode
:config :config
(setq (setq
@ -1265,6 +1275,7 @@ signature-file is the path to the file which contains the signature."
;; term / ansi-term ;; term / ansi-term
;; terminal in emacs ;; terminal in emacs
(use-package term (use-package term
:defer t
:init (defalias 'sh 'ansi-term) :init (defalias 'sh 'ansi-term)
:config :config
;; set default shell ;; set default shell
@ -1302,6 +1313,7 @@ signature-file is the path to the file which contains the signature."
;; tramp ;; tramp
;; do stuff over ssh at al. ;; do stuff over ssh at al.
(use-package tramp (use-package tramp
:defer t
:init :init
;; Set default connection method for TRAMP ;; Set default connection method for TRAMP
(setq tramp-default-method "ssh") (setq tramp-default-method "ssh")
@ -1315,6 +1327,7 @@ signature-file is the path to the file which contains the signature."
;; org-moinmoin ;; org-moinmoin
;; moinmoin export in org-mode ;; moinmoin export in org-mode
(use-package ox-moinmoin (use-package ox-moinmoin
:after (org)
:load-path "org-moinmoin/") :load-path "org-moinmoin/")
;; ox-reveal ;; ox-reveal
@ -1351,7 +1364,8 @@ signature-file is the path to the file which contains the signature."
(exec-path-from-shell-copy-env "SSH_AGENT_PID")) (exec-path-from-shell-copy-env "SSH_AGENT_PID"))
;; rust-mode ;; rust-mode
(use-package rust-mode) (use-package rust-mode
:mode (("\\.rs\\'" . rust-mode)))
;; all-the-icons ;; all-the-icons
;; A utility package to collect various Icon Fonts and propertized them within Emacs ;; A utility package to collect various Icon Fonts and propertized them within Emacs