+ruby|adjust-mode-line -> +ruby|init-mode-line
To be consistent with other initializer hooks.
This commit is contained in:
parent
85b1983c89
commit
8de36a3b5a
1 changed files with 2 additions and 2 deletions
|
@ -37,9 +37,9 @@
|
||||||
(setq-hook! (ruby-mode enh-ruby-mode) sp-max-pair-length 6)
|
(setq-hook! (ruby-mode enh-ruby-mode) sp-max-pair-length 6)
|
||||||
|
|
||||||
;; Add ruby version string to the major mode in the modeline
|
;; 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))
|
(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))
|
(add-hook 'enh-ruby-mode-hook #'+ruby|update-version))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue