mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
config/literate: don't add save hook more than once
Hinders the user's ability to disable tangle-on-save behavior.
This commit is contained in:
@ -12,6 +12,7 @@ byte-compiled from.")
|
||||
(defvar org-mode-hook)
|
||||
(defvar org-inhibit-startup)
|
||||
|
||||
;;;###autoload (add-hook 'org-mode-hook #'+literate-enable-recompile-h)
|
||||
|
||||
;;;###autoload
|
||||
(defun +literate-tangle-h ()
|
||||
@ -75,9 +76,6 @@ byte-compiled from.")
|
||||
(doom-cli-execute-lines-after "__NOTANGLE=1 $@")
|
||||
(kill-emacs 0))))))
|
||||
|
||||
;;;###autoload
|
||||
(add-hook 'org-mode-hook #'+literate-enable-recompile-h)
|
||||
|
||||
;;;###autoload
|
||||
(defalias '+literate/reload #'doom/reload)
|
||||
|
||||
|
Reference in New Issue
Block a user