aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJesús <heckyel@hyperbola.info>2018-10-02 16:45:08 -0500
committerJesús <heckyel@hyperbola.info>2018-10-02 16:45:08 -0500
commit0aee87cf38e0d0bb6b4d6dee97f1aab93ea5a649 (patch)
tree4a93681655916b056ca09d895fc429fb3d670dad /lisp
parent9b99920eae21d699a96ddf5f049eec2587d4f646 (diff)
downloademacs-personal-0aee87cf38e0d0bb6b4d6dee97f1aab93ea5a649.tar.lz
emacs-personal-0aee87cf38e0d0bb6b4d6dee97f1aab93ea5a649.tar.xz
emacs-personal-0aee87cf38e0d0bb6b4d6dee97f1aab93ea5a649.zip
- 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.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-diminish.el9
-rw-r--r--lisp/init-editing-utils.el7
2 files changed, 9 insertions, 7 deletions
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)