- 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.
This commit is contained in:
parent
9b99920eae
commit
0aee87cf38
1
init.el
1
init.el
@ -33,6 +33,7 @@
|
|||||||
(require 'init-nlinum)
|
(require 'init-nlinum)
|
||||||
(require 'init-gui)
|
(require 'init-gui)
|
||||||
(require 'init-editing-utils)
|
(require 'init-editing-utils)
|
||||||
|
(require 'init-diminish)
|
||||||
(require 'init-modeline)
|
(require 'init-modeline)
|
||||||
(require 'init-indent-guides)
|
(require 'init-indent-guides)
|
||||||
;; Tools
|
;; Tools
|
||||||
|
9
lisp/init-diminish.el
Normal file
9
lisp/init-diminish.el
Normal file
@ -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)
|
@ -32,18 +32,11 @@
|
|||||||
(setq-default
|
(setq-default
|
||||||
indent-tabs-mode nil)
|
indent-tabs-mode nil)
|
||||||
|
|
||||||
|
|
||||||
;;----------------------------------------------------------------------------
|
|
||||||
;; Diminish - is minor modes with no modeline display
|
|
||||||
;;----------------------------------------------------------------------------
|
|
||||||
(require-package 'diminish)
|
|
||||||
|
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
;; Undo-tree
|
;; Undo-tree
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
(require-package 'undo-tree)
|
(require-package 'undo-tree)
|
||||||
(global-undo-tree-mode)
|
(global-undo-tree-mode)
|
||||||
(diminish 'undo-tree-mode)
|
|
||||||
|
|
||||||
;;----------------------------------------------------------------------------
|
;;----------------------------------------------------------------------------
|
||||||
(myemacs/elapsed-time)
|
(myemacs/elapsed-time)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user