From 986e0084cd583a6049007c41706ded16d06d73c3 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 13 Sep 2022 20:53:01 +0100 Subject: (Emacs)+feature to +olivetti-mode Now disables mode line for extra *immersion* --- Emacs/.config/emacs/config.org | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 018d7b9..07aa8ef 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -1090,6 +1090,10 @@ when turned off will reinsert them - provides a nice way to quickly focus on a buffer. #+begin_src emacs-lisp (use-package olivetti + :commands (+olivetti-mode) + :general + (leader + "to" #'+olivetti-mode) :init (setq-default olivetti-body-width 0.6) (setq olivetti-style nil) @@ -1102,12 +1106,12 @@ focus on a buffer. (progn (window-configuration-to-register 1) (delete-other-windows) + (setq +olivetti/prev-mode-line mode-line-format) + (setq mode-line-format nil) (olivetti-mode t)) (jump-to-register 1) - (olivetti-mode 0))) - :general - (leader - "to" #'+olivetti-mode)) + (setq mode-line-format +olivetti/prev-mode-line) + (olivetti-mode 0)))) #+end_src * Small packages ** ISearch -- cgit v1.2.3-13-gbd6f