diff options
author | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-09-13 20:53:01 +0100 |
---|---|---|
committer | Aryadev Chavali <aryadev@aryadevchavali.com> | 2022-09-14 00:45:42 +0100 |
commit | 986e0084cd583a6049007c41706ded16d06d73c3 (patch) | |
tree | 6ef122cdc156aaf216d747ebdedd173674b41deb /Emacs/.config/emacs | |
parent | b2898fb7d67369f7b6809563bae41c60ffb46a10 (diff) | |
download | dotfiles-986e0084cd583a6049007c41706ded16d06d73c3.tar.gz dotfiles-986e0084cd583a6049007c41706ded16d06d73c3.tar.bz2 dotfiles-986e0084cd583a6049007c41706ded16d06d73c3.zip |
(Emacs)+feature to +olivetti-mode
Now disables mode line for extra *immersion*
Diffstat (limited to 'Emacs/.config/emacs')
-rw-r--r-- | Emacs/.config/emacs/config.org | 12 |
1 files 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 |