From c3c420180524fccebf4624ed155ea694ba605b1b Mon Sep 17 00:00:00 2001 From: bard Date: Wed, 11 Oct 2023 17:27:34 -0400 Subject: olivetti and theme tweaks orui and org capture keybinds --- bard-emacs-modules/bard-emacs-ui.el | 11 ----------- 1 file changed, 11 deletions(-) (limited to 'bard-emacs-modules/bard-emacs-ui.el') diff --git a/bard-emacs-modules/bard-emacs-ui.el b/bard-emacs-modules/bard-emacs-ui.el index d725e8a..9b80886 100644 --- a/bard-emacs-modules/bard-emacs-ui.el +++ b/bard-emacs-modules/bard-emacs-ui.el @@ -57,33 +57,22 @@ "Distraction-free writing environment" (if (equal olivetti-mode nil) (progn - (window-configuration-to-register 1) - (delete-other-windows) (text-scale-set 0.2) (setq olivetti-body-width 100) (olivetti-mode t)) - ;; TODO turn off line numbers (progn - (if (eq (length (window-list)) 1) - (jump-to-register 1)) (olivetti-mode 0) (text-scale-set 0) (mixed-pitch-mode 0) - ;; TODO turn restore line numbers (setq cursor-type 'box)))) (defun bard/olivetti-toggle () "Distraction-free writing environment" (if (equal olivetti-mode nil) (progn - (window-configuration-to-register 1) - (delete-other-windows) (text-scale-set 0.2) (setq olivetti-body-width 100) - (display-line-numbers-mode 0) (olivetti-mode t)) (progn - (if (eq (length (window-list)) 1) - (jump-to-register 1)) (olivetti-mode 0) (text-scale-set 0) (mixed-pitch-mode 0) -- cgit v1.2.3