~use-package -> autoload
This commit is contained in:
@@ -44,7 +44,16 @@
|
|||||||
:initial-value t)
|
:initial-value t)
|
||||||
(file-exists-p (car +literate/output-files))))
|
(file-exists-p (car +literate/output-files))))
|
||||||
|
|
||||||
|
(autoload #'org-babel-tangle-file "ob-tangle")
|
||||||
|
(defun +literate/compile-config ()
|
||||||
|
"Compile all files in +literate/org-files via org-babel-tangle."
|
||||||
|
(mapc #'org-babel-tangle-file +literate/org-files))
|
||||||
|
|
||||||
;; Killing Emacs hook
|
;; Killing Emacs hook
|
||||||
|
(add-hook
|
||||||
|
'kill-emacs-hook
|
||||||
|
#'+literate/compile-config)
|
||||||
|
|
||||||
(unless (daemonp)
|
(unless (daemonp)
|
||||||
(add-hook
|
(add-hook
|
||||||
'kill-emacs-hook
|
'kill-emacs-hook
|
||||||
@@ -52,17 +61,8 @@
|
|||||||
(unless (y-or-n-p "Really exit emacs? ")
|
(unless (y-or-n-p "Really exit emacs? ")
|
||||||
(keyboard-quit)))))
|
(keyboard-quit)))))
|
||||||
|
|
||||||
(with-eval-after-load "ob-tangle"
|
(unless (+literate/org-files-exist)
|
||||||
(defun +literate/compile-config ()
|
(+literate/compile-config))
|
||||||
"Compile all files in +literate/org-files via org-babel-tangle."
|
|
||||||
(mapc #'org-babel-tangle-file +literate/org-files))
|
|
||||||
|
|
||||||
(add-hook
|
|
||||||
'kill-emacs-hook
|
|
||||||
#'+literate/compile-config)
|
|
||||||
|
|
||||||
(unless (+literate/org-files-exist)
|
|
||||||
(+literate/compile-config)))
|
|
||||||
|
|
||||||
(+literate/load-config)
|
(+literate/load-config)
|
||||||
|
|
||||||
@@ -74,7 +74,7 @@
|
|||||||
(require 'org)
|
(require 'org)
|
||||||
(require 'eglot))
|
(require 'eglot))
|
||||||
|
|
||||||
(setq gc-cons-threshold 8000)
|
(setq gc-cons-threshold 20000000)
|
||||||
|
|
||||||
(custom-set-variables
|
(custom-set-variables
|
||||||
;; custom-set-variables was added by Custom.
|
;; custom-set-variables was added by Custom.
|
||||||
|
|||||||
Reference in New Issue
Block a user