4.8.1 Diminish

When diminish3 is installed, you can use the :diminish keyword. If diminish is not installed, the :diminish keyword does nothing.

First, add the following declaration to the beginning of your init file.

(use-package diminish :ensure t)

The optional :ensure t makes sure the package is installed if it isn’t already (see Installing packages automatically).

The :diminish keyword takes as its argument either a minor mode symbol, a cons of the symbol and its replacement string, or just a replacement string, in which case the minor mode symbol is guessed to be the package name with ‘-mode’ appended at the end:

(use-package abbrev
  :diminish abbrev-mode
  :config
  (if (file-exists-p abbrev-file-name)
      (quietly-read-abbrev-file)))

Footnotes

(3)

The diminish package is installable from GNU ELPA.