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) (org-startup-indented t)
:config :config
(org-indent-mode) (org-indent-mode)
;; (add-hook 'org-mode-hook
;; #'(lambda ()
;; (add-hook 'after-save-hook
;; #'(lambda ()
;; (org-babel-tangle)))))
(add-hook 'after-save-hook
#'(lambda () (if (equal major-mode 'org-mode)
(org-babel-tangle))))
(add-hook 'org-mode-hook (add-hook 'org-mode-hook
#'(lambda () #'(lambda () (setq-local whitespace-style nil)))
(add-hook 'after-save-hook
#'(lambda ()
(org-babel-tangle)))))
(with-eval-after-load 'org (with-eval-after-load 'org
;; This is needed as of Org 9.2 ;; This is needed as of Org 9.2
(require 'org-tempo) (require 'org-tempo)