From 707e354352fdb304da616b698e67920514f4e48e Mon Sep 17 00:00:00 2001 From: Vincent Zhang Date: Tue, 29 Jan 2019 00:51:26 +0800 Subject: [PATCH] Update FAQ for #104. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index dc388b7..b8c831a 100644 --- a/README.md +++ b/README.md @@ -213,3 +213,17 @@ Strongly recommend to use up-to-date](https://magit.vc/manual/magit/The-mode_002dline-information-isn_0027t-always-up_002dto_002ddate.html) - [Maybe provide an alternative to VC's mode-line information](https://github.com/magit/magit/issues/2687) + +1. How can I define my own mode-line? + + Use `doom-modeline-def-modeline` to define your own mode-line and set it as + default. + + For example: + + ```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) + ```