mirror of
https://github.com/correl/doom-modeline.git
synced 2024-11-23 19:19:50 +00:00
Update customization examples in README.
This commit is contained in:
parent
d66c803d3a
commit
165c864d46
2 changed files with 13 additions and 5 deletions
|
@ -239,6 +239,13 @@ Run `M-x customize-group RET doom-modeline RET` or set the variables.
|
||||||
(setq doom-modeline-env-go-executable "go")
|
(setq doom-modeline-env-go-executable "go")
|
||||||
(setq doom-modeline-env-elixir-executable "iex")
|
(setq doom-modeline-env-elixir-executable "iex")
|
||||||
(setq doom-modeline-env-rust-executable "rustc")
|
(setq doom-modeline-env-rust-executable "rustc")
|
||||||
|
|
||||||
|
;; What to dispaly as the version while a new one is being loaded
|
||||||
|
(setq doom-modeline-env-load-string "...")
|
||||||
|
|
||||||
|
;; Hooks that run before/after the modeline version string is updated
|
||||||
|
(setq doom-modeline-before-update-env-hook nil)
|
||||||
|
(setq doom-modeline-after-update-env-hook nil)
|
||||||
```
|
```
|
||||||
|
|
||||||
## FAQ
|
## FAQ
|
||||||
|
|
|
@ -38,7 +38,8 @@
|
||||||
"The environment parser for doom-modeline."
|
"The environment parser for doom-modeline."
|
||||||
:group 'doom-modeline)
|
:group 'doom-modeline)
|
||||||
|
|
||||||
(defcustom doom-modeline-env-python-executable "python"
|
(defcustom doom-modeline-env-python-executable
|
||||||
|
(or (bound-and-true-p python-shell-interpreter) "python")
|
||||||
"The executable to parse Python version."
|
"The executable to parse Python version."
|
||||||
:type 'string
|
:type 'string
|
||||||
:group 'doom-modeline-env)
|
:group 'doom-modeline-env)
|
||||||
|
@ -73,13 +74,13 @@
|
||||||
:type 'string
|
:type 'string
|
||||||
:group 'doom-modeline-env)
|
:group 'doom-modeline-env)
|
||||||
|
|
||||||
(defcustom doom-modeline-after-update-env-hook nil
|
(defcustom doom-modeline-before-update-env-hook nil
|
||||||
"Hooks that run after the modeline version string is updated."
|
"Hooks that run before the modeline version string is updated."
|
||||||
:type 'hook
|
:type 'hook
|
||||||
:group 'doom-modeline-env)
|
:group 'doom-modeline-env)
|
||||||
|
|
||||||
(defcustom doom-modeline-before-update-env-hook nil
|
(defcustom doom-modeline-after-update-env-hook nil
|
||||||
"Hooks that run before the modeline version string is updated."
|
"Hooks that run after the modeline version string is updated."
|
||||||
:type 'hook
|
:type 'hook
|
||||||
:group 'doom-modeline-env)
|
:group 'doom-modeline-env)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue