Merge pull request #231 from hlissner/patch-3

Evaluate docstrings in doom-modeline-def-env
This commit is contained in:
Vincent Zhang 2019-10-13 11:51:24 +08:00 committed by GitHub
commit bc046daea2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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