summaryrefslogtreecommitdiff
path: root/lisp/menu-bar.el
diff options
context:
space:
mode:
authorLute Kamstra <lute@gnu.org>2005-04-21 10:31:01 +0000
committerLute Kamstra <lute@gnu.org>2005-04-21 10:31:01 +0000
commite157359534fc85143de54bc8d48a9313515ee3b0 (patch)
treefd618c7c49eaa239a3c358a9cb77dbbad50a38ea /lisp/menu-bar.el
parente235145cf3d944037a620c19b3856d5e71f3c939 (diff)
downloademacs-e157359534fc85143de54bc8d48a9313515ee3b0.tar.gz
(menu-bar-options-save, menu-bar-showhide-menu): Add size-indication-mode.
Diffstat (limited to 'lisp/menu-bar.el')
-rw-r--r--lisp/menu-bar.el11
1 files changed, 8 insertions, 3 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index d0d42b9666d..ee51e8c349a 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -639,9 +639,9 @@ by \"Save Options\" in Custom buffers.")
(let ((need-save nil))
;; These are set with menu-bar-make-mm-toggle, which does not
;; put on a customized-value property.
- (dolist (elt '(line-number-mode column-number-mode cua-mode show-paren-mode
- transient-mark-mode global-font-lock-mode
- blink-cursor-mode))
+ (dolist (elt '(line-number-mode column-number-mode size-indication-mode
+ cua-mode show-paren-mode transient-mark-mode
+ global-font-lock-mode blink-cursor-mode))
(and (customize-mark-to-save elt)
(setq need-save t)))
;; These are set with `customize-set-variable'.
@@ -692,6 +692,11 @@ by \"Save Options\" in Custom buffers.")
"Line Numbers"
"Show the current line number in the mode line"))
+(define-key menu-bar-showhide-menu [size-indication-mode]
+ (menu-bar-make-mm-toggle size-indication-mode
+ "Size Indication"
+ "Show the size of the buffer in the mode line"))
+
(define-key menu-bar-showhide-menu [linecolumn-separator]
'("--"))