EDIT/README.md: hint to doom-modeline-mode-hook

To setup your custom modeline-configuration, you'll have to use doom-modeline-mode-hook
This commit is contained in:
Guido Schmidt 2019-02-04 14:15:48 +01:00 committed by GitHub
parent 8e2fff521f
commit 2e90f6480d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -224,10 +224,17 @@ Strongly recommend to use
default. default.
For example: For example:
1. Define your custom doom-modeline
```emacs-lisp ```emacs-lisp
(doom-modeline-def-modeline 'my-simple-line (doom-modeline-def-modeline 'my-simple-line
'(bar matches buffer-info remote-host buffer-position parrot selection-info) '(bar matches buffer-info remote-host buffer-position parrot selection-info)
'(misc-info minor-modes input-method buffer-encoding major-mode process vcs checker)) '(misc-info minor-modes input-method buffer-encoding major-mode process vcs checker))
(doom-modeline-set-modeline 'my-simple-line 'default) ```
2. Set it to default using the `doom-modeline-mode-hook`:
```emacs-lisp
(defun setup-custom-doom-modeline ()
(doom-modeline-set-modeline 'my-simple-line 'default))
(add-hook 'doom-modeline-mode-hook 'setup-custom-doom-modeline)
``` ```