mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-05 09:21:38 -05:00
Merge pull request #231 from hlissner/patch-3
Evaluate docstrings in doom-modeline-def-env
This commit is contained in:
commit
bc046daea2
1 changed files with 7 additions and 7 deletions
|
@ -145,18 +145,18 @@ PARSER should be a function for parsing COMMAND's output line-by-line, to
|
|||
(exe-var (intern (format "doom-modeline-env-%s-executable" name))))
|
||||
(macroexp-progn
|
||||
`((defcustom ,enable-var t
|
||||
(format "Whether to display the version string for %s buffers." ',name)
|
||||
,(format "Whether to display the version string for %s buffers." name)
|
||||
:type 'boolean
|
||||
:group 'doom-modeline-env)
|
||||
(defvar ,command-var ',action-fn
|
||||
(concat "A function that returns the shell command and arguments (as a list) to\n"
|
||||
"produce a version string."))
|
||||
,(concat "A function that returns the shell command and arguments (as a list) to\n"
|
||||
"produce a version string."))
|
||||
(defvar ,parser-var ',parse-fn
|
||||
(format "The function for parsing each line of `%s's output." ',command-var))
|
||||
,(format "The function for parsing each line of `%s's output." command-var))
|
||||
(defcustom ,exe-var nil
|
||||
(format (concat "What executable to use for the version indicator in %s buffers.\n\n"
|
||||
"If nil, the default binary for this language is used.")
|
||||
',name)
|
||||
,(format (concat "What executable to use for the version indicator in %s buffers.\n\n"
|
||||
"If nil, the default binary for this language is used.")
|
||||
name)
|
||||
:type 'string
|
||||
:group 'doom-modeline-env)
|
||||
(defalias ',parse-fn ,parser
|
||||
|
|
Loading…
Add table
Reference in a new issue