R
Rich
I was attempting to install ruby support into my emacs installation by
following the directions at the RubyGarden. When I load a ruby file,
Emacs switches to Ruby mode but doesn't do syntax highlighting. Does
anybody have any insight? Here is the relevant portion of my .emacs
file:
(autoload 'ruby-mode "ruby-mode"
"Mode for editing ruby source files")
(add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode))
(add-hook 'ruby-mode-hook 'turn-on-font-lock) ;; <- Is supposed to
enable font lock.
(setq interpreter-mode-alist (append '(("^#!.*ruby" . ruby-mode))
interpreter-mode-alist))
(setq ruby-indent-level 4)
I do not have ruby-electric.el installed, for the interested. Thank you.
-Rich
following the directions at the RubyGarden. When I load a ruby file,
Emacs switches to Ruby mode but doesn't do syntax highlighting. Does
anybody have any insight? Here is the relevant portion of my .emacs
file:
(autoload 'ruby-mode "ruby-mode"
"Mode for editing ruby source files")
(add-to-list 'auto-mode-alist '("\\.rb\\'" . ruby-mode))
(add-hook 'ruby-mode-hook 'turn-on-font-lock) ;; <- Is supposed to
enable font lock.
(setq interpreter-mode-alist (append '(("^#!.*ruby" . ruby-mode))
interpreter-mode-alist))
(setq ruby-indent-level 4)
I do not have ruby-electric.el installed, for the interested. Thank you.
-Rich