aboutsummaryrefslogtreecommitdiff
path: root/Emacs
diff options
context:
space:
mode:
Diffstat (limited to 'Emacs')
-rw-r--r--Emacs/.config/emacs/config.org12
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