mirror of
https://github.com/correl/doom-modeline.git
synced 2024-12-25 03:00:11 +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-elixir-executable "iex")
|
||||
(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
|
||||
|
|
|
@ -38,7 +38,8 @@
|
|||
"The environment parser for 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."
|
||||
:type 'string
|
||||
:group 'doom-modeline-env)
|
||||
|
@ -73,13 +74,13 @@
|
|||
:type 'string
|
||||
:group 'doom-modeline-env)
|
||||
|
||||
(defcustom doom-modeline-after-update-env-hook nil
|
||||
"Hooks that run after the modeline version string is updated."
|
||||
(defcustom doom-modeline-before-update-env-hook nil
|
||||
"Hooks that run before the modeline version string is updated."
|
||||
:type 'hook
|
||||
:group 'doom-modeline-env)
|
||||
|
||||
(defcustom doom-modeline-before-update-env-hook nil
|
||||
"Hooks that run before the modeline version string is updated."
|
||||
(defcustom doom-modeline-after-update-env-hook nil
|
||||
"Hooks that run after the modeline version string is updated."
|
||||
:type 'hook
|
||||
:group 'doom-modeline-env)
|
||||
|
||||
|
|
Loading…
Reference in a new issue