Browse Source

Try to resolve a potential problem with tuareg-mode and which-function-mode

custom
Bozhidar Batsov 13 years ago
parent
commit
213b3c9f11
  1. 1
      core/prelude-packages.el
  2. 2
      modules/prelude-programming.el

1
core/prelude-packages.el

@ -94,6 +94,7 @@ PACKAGE is installed only if not already present. The file is opened in MODE."
("\\.lua\\'" lua-mode lua-mode) ("\\.lua\\'" lua-mode lua-mode)
("\\.markdown\\'" markdown-mode markdown-mode) ("\\.markdown\\'" markdown-mode markdown-mode)
("\\.md\\'" markdown-mode markdown-mode) ("\\.md\\'" markdown-mode markdown-mode)
("\\.ml\\'" tuareg tuareg-mode)
("\\.php\\'" php-mode php-mode) ("\\.php\\'" php-mode php-mode)
("\\.sass\\'" sass-mode sass-mode) ("\\.sass\\'" sass-mode sass-mode)
("\\.scala\\'" scala-mode2 scala-mode) ("\\.scala\\'" scala-mode2 scala-mode)

2
modules/prelude-programming.el

@ -97,7 +97,7 @@
;; show the name of the current function definition in the modeline ;; show the name of the current function definition in the modeline
(require 'which-func) (require 'which-func)
(setq which-func-modes t)
(add-to-list 'which-func-modes 'ruby-mode)
(which-function-mode 1) (which-function-mode 1)
;; in Emacs 24 programming major modes generally derive from a common ;; in Emacs 24 programming major modes generally derive from a common

Loading…
Cancel
Save