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

This commit is contained in:
Bozhidar Batsov 2013-04-29 23:58:06 +03:00
parent 9ad2ae6202
commit 213b3c9f11
2 changed files with 2 additions and 1 deletions

View file

@ -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)

View file

@ -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