lang/ruby: fix rbenv version in mode-line

This commit is contained in:
Henrik Lissner 2018-03-13 01:22:53 -04:00
parent 8d11682e99
commit b181799f93
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -31,7 +31,7 @@
(defun +ruby|add-version-to-modeline ()
"Add version string to the major mode in the modeline."
(setq mode-name
(if +python-current-version
(if +ruby-current-version
(format "Ruby %s" +ruby-current-version)
"Ruby")))
(add-hook 'ruby-mode-hook #'+ruby|add-version-to-modeline)