aboutsummaryrefslogtreecommitdiff
path: root/bard-emacs-modules/bard-emacs-ui.el
diff options
context:
space:
mode:
Diffstat (limited to 'bard-emacs-modules/bard-emacs-ui.el')
-rw-r--r--bard-emacs-modules/bard-emacs-ui.el16
1 files changed, 2 insertions, 14 deletions
diff --git a/bard-emacs-modules/bard-emacs-ui.el b/bard-emacs-modules/bard-emacs-ui.el
index 9b80886..c76786a 100644
--- a/bard-emacs-modules/bard-emacs-ui.el
+++ b/bard-emacs-modules/bard-emacs-ui.el
@@ -52,20 +52,8 @@
;; olivetti
(use-package olivetti
:config
- (defun bard/olivetti-toggle-interactive ()
- (interactive)
- "Distraction-free writing environment"
- (if (equal olivetti-mode nil)
- (progn
- (text-scale-set 0.2)
- (setq olivetti-body-width 100)
- (olivetti-mode t))
- (progn
- (olivetti-mode 0)
- (text-scale-set 0)
- (mixed-pitch-mode 0)
- (setq cursor-type 'box))))
(defun bard/olivetti-toggle ()
+ (interactive)
"Distraction-free writing environment"
(if (equal olivetti-mode nil)
(progn
@@ -78,7 +66,7 @@
(mixed-pitch-mode 0)
(setq cursor-type 'box))))
:bind
- (("<f9>" . bard/olivetti-toggle-interactive)))
+ (("<f9>" . bard/olivetti-toggle)))
(provide 'bard-emacs-ui)