org: some better hooking
This commit is contained in:
parent
baf43e63dd
commit
a365f792b4
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user