summaryrefslogtreecommitdiff
path: root/lisp/bindings.el
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2015-11-30 10:52:12 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2015-11-30 10:52:12 -0500
commitcbfb129555482c582fe875766680bf8179c0588c (patch)
treef2337014213c5b865250676ff6033d90e6c6d0d2 /lisp/bindings.el
parentc77b816bc3d8fc242b95c04859803ffff5bb8210 (diff)
downloademacs-cbfb129555482c582fe875766680bf8179c0588c.tar.gz
* lisp/progmodes/which-func.el: Improve disabling the mode
Use lexical-binding. (which-func-modes, which-func-non-auto-modes, which-func-maxout) (which-func, which-func-format): Remove redundant :group arg. (which-func-try-to-enable): New function. (which-func-ff-hook, which-function-mode): Use it. (mode-line-misc-info): Add ourselves here instead of in bindings.el. * lisp/bindings.el (mode-line-misc-info): Remove which-func-mode entry.
Diffstat (limited to 'lisp/bindings.el')
-rw-r--r--lisp/bindings.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/bindings.el b/lisp/bindings.el
index 8560871694d..e2d0f5268c1 100644
--- a/lisp/bindings.el
+++ b/lisp/bindings.el
@@ -430,11 +430,9 @@ Major modes that edit things other than ordinary files may change this
(make-variable-buffer-local 'mode-line-buffer-identification)
(defvar mode-line-misc-info
- '((which-func-mode ("" which-func-format " "))
- (global-mode-string ("" global-mode-string " ")))
+ '((global-mode-string ("" global-mode-string " ")))
"Mode line construct for miscellaneous information.
-By default, this shows the information specified by
-`which-func-mode' and `global-mode-string'.")
+By default, this shows the information specified by `global-mode-string'.")
(put 'mode-line-misc-info 'risky-local-variable t)
(defvar mode-line-end-spaces '(:eval (unless (display-graphic-p) "-%-"))