From 0aee87cf38e0d0bb6b4d6dee97f1aab93ea5a649 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 2 Oct 2018 16:45:08 -0500 Subject: - Refactoring diminish mode The diminish mode is activated, which helps us to keep the modeline clean. As we see, in the modeline the modes that are activated are shown, and every time we have more activated minor-modes, which add small functionalities to Emacs. In this case, there are many modes, that if they do not appear, nothing happens. So we hide some, like undo-tree that will always be activated. --- lisp/init-diminish.el | 9 +++++++++ lisp/init-editing-utils.el | 7 ------- 2 files changed, 9 insertions(+), 7 deletions(-) create mode 100644 lisp/init-diminish.el (limited to 'lisp') diff --git a/lisp/init-diminish.el b/lisp/init-diminish.el new file mode 100644 index 0000000..6634690 --- /dev/null +++ b/lisp/init-diminish.el @@ -0,0 +1,9 @@ +;;---------------------------------------------------------------------------- +;; Diminish - is minor modes with no modeline display +;;---------------------------------------------------------------------------- +(require-package 'diminish) + +;; Hide undo-tree-mode +(diminish 'undo-tree-mode) + +(provide 'init-diminish) diff --git a/lisp/init-editing-utils.el b/lisp/init-editing-utils.el index 9593607..b5f6f8e 100644 --- a/lisp/init-editing-utils.el +++ b/lisp/init-editing-utils.el @@ -32,18 +32,11 @@ (setq-default indent-tabs-mode nil) - -;;---------------------------------------------------------------------------- -;; Diminish - is minor modes with no modeline display -;;---------------------------------------------------------------------------- -(require-package 'diminish) - ;;---------------------------------------------------------------------------- ;; Undo-tree ;;---------------------------------------------------------------------------- (require-package 'undo-tree) (global-undo-tree-mode) -(diminish 'undo-tree-mode) ;;---------------------------------------------------------------------------- (myemacs/elapsed-time) -- cgit v1.2.3