From 8e534045d2e3dc988501becb53286f77ebf82b52 Mon Sep 17 00:00:00 2001 From: Daniel Borchmann Date: Sun, 11 Sep 2022 18:34:03 +0200 Subject: [PATCH] Explicitly activate some text-mode-hooks in Org mode Apparently, text-mode-hooks are not run in Org mode? So let's add them explicitly. --- init.el | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.el b/init.el index cde1186..484739a 100644 --- a/init.el +++ b/init.el @@ -899,6 +899,10 @@ (emacs-lisp . t)))) :config (progn + ;; Some hooks from text-mode-hook, Org mode does not seem to run those? + (add-hook 'org-mode-hook 'page-break-lines-mode) + (add-hook 'org-mode-hook 'turn-on-auto-fill) + ;; Reset checkboxes if the RESET_CHECK_BOXES property is set (add-hook 'org-after-todo-state-change-hook 'org-reset-checkbox-state-maybe)