From 2e90f6480d97919cd7e729a012f730cf237463a8 Mon Sep 17 00:00:00 2001 From: Guido Schmidt Date: Mon, 4 Feb 2019 14:15:48 +0100 Subject: [PATCH] EDIT/README.md: hint to doom-modeline-mode-hook To setup your custom modeline-configuration, you'll have to use doom-modeline-mode-hook --- README.md | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6647dc4..7a11798 100644 --- a/README.md +++ b/README.md @@ -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) ```