mirror of
https://github.com/vale981/doom-modeline
synced 2025-03-04 17:01:39 -05:00
Update comments and page breaks.
This commit is contained in:
parent
5cb0ff7a38
commit
a62a95d49a
1 changed files with 6 additions and 5 deletions
|
@ -30,12 +30,12 @@
|
||||||
(require 'subr-x)
|
(require 'subr-x)
|
||||||
(require 'doom-modeline-core)
|
(require 'doom-modeline-core)
|
||||||
|
|
||||||
|
|
||||||
;; Externals
|
;; Externals
|
||||||
(defvar python-shell-interpreter)
|
(defvar python-shell-interpreter)
|
||||||
|
|
||||||
;;
|
|
||||||
;; Customizations
|
;; Customizations
|
||||||
;;
|
|
||||||
|
|
||||||
(defgroup doom-modeline-env nil
|
(defgroup doom-modeline-env nil
|
||||||
"The environment parser for doom-modeline."
|
"The environment parser for doom-modeline."
|
||||||
|
@ -58,6 +58,7 @@
|
||||||
:group 'doom-modeline-env)
|
:group 'doom-modeline-env)
|
||||||
|
|
||||||
|
|
||||||
|
;; Variables
|
||||||
|
|
||||||
;; Show version string for multi-version managers like rvm, rbenv, pyenv, etc.
|
;; Show version string for multi-version managers like rvm, rbenv, pyenv, etc.
|
||||||
(defvar-local doom-modeline-env--version nil
|
(defvar-local doom-modeline-env--version nil
|
||||||
|
@ -76,6 +77,9 @@ Example: '(\"--version\") ")
|
||||||
"A function that returns version number from a command --version (or similar).
|
"A function that returns version number from a command --version (or similar).
|
||||||
Example: 'doom-modeline-env--ruby")
|
Example: 'doom-modeline-env--ruby")
|
||||||
|
|
||||||
|
|
||||||
|
;; Functions & Macros
|
||||||
|
|
||||||
(defun doom-modeline-update-env ()
|
(defun doom-modeline-update-env ()
|
||||||
"Update environment info on mode-line."
|
"Update environment info on mode-line."
|
||||||
(when (and doom-modeline-env-version
|
(when (and doom-modeline-env-version
|
||||||
|
@ -192,11 +196,8 @@ PARSER should be a function for parsing COMMAND's output line-by-line, to
|
||||||
(add-hook hook #',setup-fn)))))))
|
(add-hook hook #',setup-fn)))))))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
;;
|
|
||||||
;; Bootstrap
|
;; Bootstrap
|
||||||
;; Versions, support Python, Ruby, Perl and Golang, etc.
|
;; Versions, support Python, Ruby, Perl and Golang, etc.
|
||||||
;;
|
|
||||||
|
|
||||||
;;;###autoload (autoload 'doom-modeline-env-setup-python "doom-modeline-env")
|
;;;###autoload (autoload 'doom-modeline-env-setup-python "doom-modeline-env")
|
||||||
(doom-modeline-def-env python
|
(doom-modeline-def-env python
|
||||||
|
|
Loading…
Add table
Reference in a new issue