Enable olivetti mode on specific file types

This commit is contained in:
Marcus Kammer 2020-04-27 09:54:04 +02:00
parent 7ed4764303
commit a9f4069699

View file

@ -16,7 +16,7 @@
(setq my-hooks '(python-mode-hook emacs-lisp-mode-hook json-mode-hook)) (setq my-hooks '(python-mode-hook emacs-lisp-mode-hook json-mode-hook))
(while my-hooks (add-hook (car my-hooks) (while my-hooks (add-hook (car my-hooks)
(lambda () (lambda ()
(display-line-numbers-mode 1))) (display-line-numbers-mode 1) (olivetti-mode)))
(setq my-hooks (cdr my-hooks))) (setq my-hooks (cdr my-hooks)))
(add-hook 'newsticker-mode-hook 'imenu-add-menubar-index) (add-hook 'newsticker-mode-hook 'imenu-add-menubar-index)