From cb6bfe77678783ce264932081fd0abf6f9586a0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ra=C3=BAl=20Benencia?= Date: Wed, 20 Dec 2023 11:02:40 -0800 Subject: emacs: auto-save org files --- .emacs.d/rul-lisp/packages/rul-org.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to '.emacs.d/rul-lisp/packages') diff --git a/.emacs.d/rul-lisp/packages/rul-org.el b/.emacs.d/rul-lisp/packages/rul-org.el index 5410689..4081335 100644 --- a/.emacs.d/rul-lisp/packages/rul-org.el +++ b/.emacs.d/rul-lisp/packages/rul-org.el @@ -18,6 +18,7 @@ (use-package org-pomodoro :ensure t) (add-hook 'org-mode-hook 'turn-off-auto-fill) +(add-hook 'auto-save-hook 'org-save-all-org-buffers) (add-hook 'org-mode-hook 'visual-line-mode) (use-package org-download @@ -25,9 +26,6 @@ :config (add-hook 'dired-mode-hook 'org-download-enable)) -;; Drag-and-drop to `dired` -(add-hook 'dired-mode-hook 'org-download-enable) - (setq org-startup-indented t org-pretty-entities nil org-hide-emphasis-markers t -- cgit v1.2.3