From f636d1012030e57f37eb55512336cb6c9016078e Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Wed, 8 Nov 2023 13:02:36 +0700 Subject: [PATCH] Emacs: Enable olivetti for prog-mode --- .config/emacs/init.org | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 4753916..4703048 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -345,6 +345,7 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering (require 'olivetti) (setq olivetti-minimum-body-width 100) (global-set-key (kbd "C-x x o") 'olivetti-mode) +(add-hook 'prog-mode-hook 'olivetti-mode) #+end_src *** Themes @@ -2568,6 +2569,5 @@ over as explained [[https://manueluberti.eu/2018/02/17/magit-bury-buffer.html][h * COMMENT Local variables ;; Local Variables: -;; eval: (olivetti-mode t) ;; eval: (add-hook 'after-save-hook '(lambda () (org-babel-tangle)) nil t) ;; End: