mirror of
https://github.com/larstvei/dot-emacs.git
synced 2024-11-26 07:28:31 +00:00
use-package olivetti
This commit is contained in:
parent
89ae70a05b
commit
6cb25696c8
17
init.org
17
init.org
@ -207,8 +207,7 @@
|
|||||||
|
|
||||||
(let* ((package--builtins nil)
|
(let* ((package--builtins nil)
|
||||||
(packages
|
(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-bullets ; Show bullets in org-mode as UTF-8 characters
|
||||||
org-msg ; Org mode to send and reply to email in HTML
|
org-msg ; Org mode to send and reply to email in HTML
|
||||||
ox-gfm ; Export Github Flavored Markdown from Org
|
ox-gfm ; Export Github Flavored Markdown from Org
|
||||||
@ -528,7 +527,11 @@
|
|||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+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))
|
(setq-default olivetti-body-width (+ fill-column 3))
|
||||||
(remove-hook 'olivetti-mode-on-hook 'visual-line-mode))
|
(remove-hook 'olivetti-mode-on-hook 'visual-line-mode))
|
||||||
|
|
||||||
@ -1726,14 +1729,6 @@
|
|||||||
|
|
||||||
#+end_src
|
#+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
|
** Bindings for mu4e
|
||||||
|
|
||||||
#+begin_src emacs-lisp
|
#+begin_src emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user