use-package olivetti

This commit is contained in:
larstvei 2023-06-12 21:45:00 +02:00
parent 89ae70a05b
commit 6cb25696c8

View File

@ -207,8 +207,7 @@
(let* ((package--builtins nil)
(packages
'(olivetti ; Minor mode for a nice writing environment
org ; Outline-based notes management and organizer
'(org ; Outline-based notes management and organizer
org-bullets ; Show bullets in org-mode as UTF-8 characters
org-msg ; Org mode to send and reply to email in HTML
ox-gfm ; Export Github Flavored Markdown from Org
@ -528,7 +527,11 @@
#+begin_src emacs-lisp
(with-eval-after-load 'olivetti
;; Minor mode for a nice writing environment
(use-package olivetti
:defer t
:bind ("C-c o" . olivetti-mode)
:config
(setq-default olivetti-body-width (+ fill-column 3))
(remove-hook 'olivetti-mode-on-hook 'visual-line-mode))
@ -1726,14 +1729,6 @@
#+end_src
** Bindings for [[https://github.com/rnkn/olivetti][Olivetti]]
#+begin_src emacs-lisp
(define-key custom-bindings-map (kbd "C-c o") 'olivetti-mode)
#+end_src
** Bindings for mu4e
#+begin_src emacs-lisp