mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-25 19:25:39 +00:00
Merge pull request #112 from guidoschmidt/master
EDIT/README.md: hint to doom-modeline-mode-hook
This commit is contained in:
commit
b1656e47b2
1 changed files with 8 additions and 1 deletions
|
@ -224,10 +224,17 @@ Strongly recommend to use
|
|||
default.
|
||||
|
||||
For example:
|
||||
1. Define your custom doom-modeline
|
||||
|
||||
```emacs-lisp
|
||||
(doom-modeline-def-modeline 'my-simple-line
|
||||
'(bar matches buffer-info remote-host buffer-position parrot selection-info)
|
||||
'(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)
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue