Diminish some minor modes

This commit is contained in:
Tom Willemse 2016-08-10 14:27:24 +02:00
parent e467d26031
commit a2fc1c0c2c

View file

@ -236,6 +236,15 @@ To start off, first I need to enable lexical binding.
(load-theme 'yoshi :no-confirm) (load-theme 'yoshi :no-confirm)
#+END_SRC #+END_SRC
* Diminish
I really don't need to see some of the minor modes.
#+BEGIN_SRC emacs-lisp
(ensure-library diminish)
(require 'diminish)
#+END_SRC
* Ivy * Ivy
Ivy is a completing read implementation that offers choises Ivy is a completing read implementation that offers choises
@ -259,6 +268,14 @@ To start off, first I need to enable lexical binding.
(require 'ivy) (require 'ivy)
#+END_SRC #+END_SRC
Don't show that ivy is enabled in the mode-line. It's enabled
globally and I'll notice it from other things anyway (like it
showing up).
#+BEGIN_SRC emacs-lisp
(diminish 'ivy-mode)
#+END_SRC
Enable fuzzy matching in Ivy. Enable fuzzy matching in Ivy.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -288,6 +305,13 @@ To start off, first I need to enable lexical binding.
(require 'counsel) (require 'counsel)
#+END_SRC #+END_SRC
Don't show that counsel is enabled in the mode-line. It's enabled
globally and I'll notice whenever I press M-x for example.
#+BEGIN_SRC emacs-lisp
(diminish 'counsel-mode)
#+END_SRC
Enable Counsel. Enable Counsel.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
@ -397,6 +421,27 @@ To start off, first I need to enable lexical binding.
(flycheck-pos-tip-mode)) (flycheck-pos-tip-mode))
#+END_SRC #+END_SRC
** Auto revert mode
ARev isn't very descriptive, and fairly wide. Use a font-awesome icon instead.
#+BEGIN_SRC emacs-lisp
(diminish 'auto-revert-mode
(propertize (concat " " (char-to-string #xf021))
'face '(:family "Font Awesome" :height 0.75)))
#+END_SRC
** Auto fill mode
"Fill" is fine as a mode-line lighter, but I prefer something
shorter.
#+BEGIN_SRC emacs-lisp
(diminish 'auto-fill-function
(propertize (concat " " (char-to-string #xf149))
'face '(:family "Font Awesome" :height 0.75)))
#+END_SRC
* Major modes * Major modes
** Emacs lisp mode ** Emacs lisp mode