optimize package loading

This commit is contained in:
2022-12-18 19:14:30 +01:00
parent efe08d1027
commit cbc480386c
4 changed files with 9 additions and 30 deletions

View File

@@ -4,8 +4,7 @@
;; .plantuml .pum .plu
;; Requirements:
;; gnuplot
;; gnuplot-mode https://melpa.org/#/gnuplot-mode drive gnuplot from within Emacs e.g. via org (export)
;; gnuplot https://melpa.org/#/gnuplote drive gnuplot from within Emacs e.g. via org (export)
;; plantuml-mode https://melpa.org/#/plantuml-mode https://github.com/skuro/plantuml-mode
;; dash
@@ -25,8 +24,8 @@
;; arch linux aur package path
(setq plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar")
(setq org-plantuml-jar-path "/usr/share/java/plantuml/plantuml.jar")
(with-eval-after-load 'org
(add-to-list 'org-src-lang-modes '("plantuml" . plantuml))))
(with-eval-after-load 'org-src
(setq org-src-lang-modes (add-to-list 'org-src-lang-modes '("plantuml" . plantuml)))))
(provide 'plot-settings)
;;; plot-settings.el ends here

View File

@@ -1,19 +1,6 @@
;;; pre-settings.el --- Summary -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(mapc (lambda (item) (add-to-list 'load-path item))
(list
(concat config-dir "settings") ;; path where settings files are kept
(concat config-dir "lisp") ;; personal elisp lib dir, for manually installed packages
(concat config-dir "lisp/adaptive-wrap") ;; https://elpa.gnu.org/packages/adaptive-wrap.html
(concat config-dir "lisp/dash")
(concat config-dir "lisp/with-editor")
(concat config-dir "lisp/hydra") ;; required by treemacs org-ref
(concat config-dir "lisp/async") ;; https://melpa.org/#/async required by ob-async
(concat config-dir "lisp/persist") ;; https://elpa.gnu.org/packages/persist.html required by org-drill
(concat config-dir "lisp/use-package") ;; https://melpa.org/#/use-package
))
;; count startup time
(add-hook 'emacs-startup-hook ;; Use a hook so the message doesn't get clobbered by other messages.
(lambda ()