diff options
author | Alan Pearce | 2017-12-06 11:41:10 +0100 |
---|---|---|
committer | Alan Pearce | 2017-12-06 11:41:10 +0100 |
commit | 77af8db6fc77342281b7c4f5b1e7c802319ad1be (patch) | |
tree | df6dab4297492c2eb004c19476bed6409346d04b | |
parent | 0b2052227e585a181fc9c10552ec53a5a87b397a (diff) | |
download | nixfiles-77af8db6fc77342281b7c4f5b1e7c802319ad1be.tar.lz nixfiles-77af8db6fc77342281b7c4f5b1e7c802319ad1be.tar.zst nixfiles-77af8db6fc77342281b7c4f5b1e7c802319ad1be.zip |
Emacs: Remove hide/show mode-line functions
Too complicated; didn't really use
-rw-r--r-- | emacs/.emacs.d/main.el | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el index ffa9c0f1..0f50e873 100644 --- a/emacs/.emacs.d/main.el +++ b/emacs/.emacs.d/main.el @@ -259,46 +259,8 @@ ;;;;; Chrome -;; Sometimes I like to hide clutter. Other times, it's useful. - -(defvar mode-line-default-format mode-line-format) -(defvar mode-line-default-hidden nil - "Whether to hide the mode line by default.") - -(defun show-mode-line () - (interactive) - (setq mode-line-format mode-line-default-format) - (when (called-interactively-p 'interactive) - (setq-default mode-line-format mode-line-default-format) - (setq mode-line-default-hidden nil))) -(defun hide-mode-line () - (interactive) - (setq mode-line-format nil) - (when (called-interactively-p 'interactive) - (setq-default mode-line-format nil) - (setq mode-line-default-hidden t))) - (setq-default cursor-in-non-selected-windows nil) -(defun hide-clutter () - (interactive) - (hide-mode-line)) - -(defun show-clutter () - (interactive) - (show-mode-line)) - -(when mode-line-default-hidden - (call-interactively #'hide-mode-line)) - -(setq-default indicate-buffer-boundaries nil) -(fringe-mode '(4 . 4)) - -(defun hide-mode-line-if-default-hidden () - (if mode-line-default-hidden - (hide-mode-line) - (show-mode-line))) - (add-to-list 'default-frame-alist '(border-width . 0)) (add-to-list 'default-frame-alist '(internal-border-width . 0)) (when (or (eq window-system 'x) @@ -308,11 +270,6 @@ window-divider-default-places t) (window-divider-mode +1)) -(add-hook 'after-change-major-mode-hook #'hide-mode-line-if-default-hidden) - -(add-hook 'minibuffer-setup-hook #'show-mode-line) -(add-hook 'minibuffer-exit-hook #'hide-mode-line) - ;;;;; Highlight Changes ;; Highlight what just changed when I undo, yank, and so on. |