diff options
Diffstat (limited to 'misc')
-rw-r--r-- | misc/ruby-mode.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el index 138b1b9b2b..01f22898b3 100644 --- a/misc/ruby-mode.el +++ b/misc/ruby-mode.el @@ -312,7 +312,9 @@ The variable ruby-indent-level controls the amount of indentation. (set (make-local-variable 'font-lock-syntax-table) ruby-font-lock-syntax-table) (set (make-local-variable 'font-lock-syntactic-keywords) ruby-font-lock-syntactic-keywords) - (run-mode-hooks 'ruby-mode-hook)) + (if (fboundp 'run-mode-hooks) + (run-mode-hooks 'ruby-mode-hook) + (run-hooks 'ruby-mode-hook))) (defun ruby-current-indentation () (save-excursion |