aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/init-diminish.el
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/init-diminish.el
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/init-diminish.el')
-rw-r--r--lisp/init-diminish.el9
1 files changed, 9 insertions, 0 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)