+ruby|adjust-mode-line -> +ruby|init-mode-line

To be consistent with other initializer hooks.
This commit is contained in:
Henrik Lissner 2019-02-24 22:23:24 -05:00
parent 85b1983c89
commit 8de36a3b5a
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -37,9 +37,9 @@
(setq-hook! (ruby-mode enh-ruby-mode) sp-max-pair-length 6)
;; Add ruby version string to the major mode in the modeline
(defun +ruby|adjust-mode-line ()
(defun +ruby|init-mode-line ()
(setq mode-name +ruby-mode-line-indicator))
(add-hook 'enh-ruby-mode-hook #'+ruby|adjust-mode-line)
(add-hook 'enh-ruby-mode-hook #'+ruby|init-mode-line)
(add-hook 'enh-ruby-mode-hook #'+ruby|update-version))