lang/ruby: fix rbenv version in mode-line
This commit is contained in:
parent
8d11682e99
commit
b181799f93
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@
|
||||||
(defun +ruby|add-version-to-modeline ()
|
(defun +ruby|add-version-to-modeline ()
|
||||||
"Add version string to the major mode in the modeline."
|
"Add version string to the major mode in the modeline."
|
||||||
(setq mode-name
|
(setq mode-name
|
||||||
(if +python-current-version
|
(if +ruby-current-version
|
||||||
(format "Ruby %s" +ruby-current-version)
|
(format "Ruby %s" +ruby-current-version)
|
||||||
"Ruby")))
|
"Ruby")))
|
||||||
(add-hook 'ruby-mode-hook #'+ruby|add-version-to-modeline)
|
(add-hook 'ruby-mode-hook #'+ruby|add-version-to-modeline)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue