Emacs: Enable olivetti for prog-mode

This commit is contained in:
Joseph Ferano 2023-11-08 13:02:36 +07:00
parent 01c8dd0799
commit f636d10120

View File

@ -345,6 +345,7 @@ Use Dashboard.el. First load `all-the-icons` for nicer rendering
(require 'olivetti) (require 'olivetti)
(setq olivetti-minimum-body-width 100) (setq olivetti-minimum-body-width 100)
(global-set-key (kbd "C-x x o") 'olivetti-mode) (global-set-key (kbd "C-x x o") 'olivetti-mode)
(add-hook 'prog-mode-hook 'olivetti-mode)
#+end_src #+end_src
*** Themes *** Themes
@ -2568,6 +2569,5 @@ over as explained [[https://manueluberti.eu/2018/02/17/magit-bury-buffer.html][h
* COMMENT Local variables * COMMENT Local variables
;; Local Variables: ;; Local Variables:
;; eval: (olivetti-mode t)
;; eval: (add-hook 'after-save-hook '(lambda () (org-babel-tangle)) nil t) ;; eval: (add-hook 'after-save-hook '(lambda () (org-babel-tangle)) nil t)
;; End: ;; End: