From a9ac150595d6a557b9164b8220146763c966a9cf Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 22 Sep 2020 18:14:51 +0200 Subject: [PATCH] Olivetti settings --- init.org | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/init.org b/init.org index 97cca87..849600a 100644 --- a/init.org +++ b/init.org @@ -460,6 +460,15 @@ ("psi" . ?ψ))) #+END_SRC + [[https://github.com/rnkn/olivetti][Olivetti]] is a package that simply centers the text of a buffer. It is very + simple and beautiful. The default width is just a bit short. + + #+BEGIN_SRC emacs-lisp + (with-eval-after-load 'olivetti + (setq-default olivetti-body-width 82) + (remove-hook 'olivetti-mode-on-hook 'visual-line-mode)) + #+END_SRC + ** PDF Tools [[https://github.com/politza/pdf-tools][PDF Tools]] makes a huge improvement on the built-in [[http://www.gnu.org/software/emacs/manual/html_node/emacs/Document-View.html][doc-view-mode]]; the only @@ -1264,6 +1273,12 @@ (define-key cider-repl-mode-map (kbd "C-l") 'cider-repl-clear-buffer)) #+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 built-ins #+BEGIN_SRC emacs-lisp