org: some better hooking

This commit is contained in:
MitchMarq42 2022-06-21 07:26:38 -08:00
parent baf43e63dd
commit a365f792b4

View File

@ -211,11 +211,16 @@
(org-startup-indented t)
:config
(org-indent-mode)
(add-hook 'org-mode-hook
#'(lambda ()
;; (add-hook 'org-mode-hook
;; #'(lambda ()
;; (add-hook 'after-save-hook
;; #'(lambda ()
;; (org-babel-tangle)))))
(add-hook 'after-save-hook
#'(lambda ()
(org-babel-tangle)))))
#'(lambda () (if (equal major-mode 'org-mode)
(org-babel-tangle))))
(add-hook 'org-mode-hook
#'(lambda () (setq-local whitespace-style nil)))
(with-eval-after-load 'org
;; This is needed as of Org 9.2
(require 'org-tempo)