aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPavel Janík2002-02-03 11:28:28 +0000
committerPavel Janík2002-02-03 11:28:28 +0000
commit40189bd6e9b66aaee1ae29fc4f0fc0bba8f59099 (patch)
treefbfd6a5d3e3ce7d66f8374f366c4d13e1e42d999
parent46ea0665a7fc51d5e1c59f74dd0be0fd857e0f76 (diff)
downloademacs-40189bd6e9b66aaee1ae29fc4f0fc0bba8f59099.tar.gz
emacs-40189bd6e9b66aaee1ae29fc4f0fc0bba8f59099.zip
(menu-bar-help-menu): Use different text for tool-tip.
(menu-bar-options-save): Save also the value of `display-time-mode'. (showhide-date-time): New function. (menu-bar-showhide-menu): New menu-item "Date and time".
-rw-r--r--lisp/menu-bar.el20
1 files changed, 18 insertions, 2 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 69a8bf3433d..634c7f53cff 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -549,7 +549,7 @@ Do the same for the keys of the same name."
549 case-fold-search truncate-lines show-paren-mode 549 case-fold-search truncate-lines show-paren-mode
550 transient-mark-mode global-font-lock-mode 550 transient-mark-mode global-font-lock-mode
551 current-language-environment default-input-method 551 current-language-environment default-input-method
552 default-frame-alist)) 552 default-frame-alist display-time-mode))
553 (if (default-value elt) 553 (if (default-value elt)
554 (customize-save-variable elt (default-value elt)))) 554 (customize-save-variable elt (default-value elt))))
555 (if (memq 'turn-on-auto-fill text-mode-hook) 555 (if (memq 'turn-on-auto-fill text-mode-hook)
@@ -571,6 +571,22 @@ Do the same for the keys of the same name."
571;; The "Show/Hide" submenu of menu "Options" 571;; The "Show/Hide" submenu of menu "Options"
572 572
573(defvar menu-bar-showhide-menu (make-sparse-keymap "Show/Hide")) 573(defvar menu-bar-showhide-menu (make-sparse-keymap "Show/Hide"))
574
575(defun showhide-date-time ()
576 "Toggle whether to show date and time in the mode-line."
577 (interactive)
578 (if (display-time-mode)
579 (message "Display-time mode enabled.")
580 (message "Display-time mode disabled.")))
581
582(define-key menu-bar-showhide-menu [showhide-date-time]
583 '(menu-item "Date and time" showhide-date-time
584 :help "Display date and time in the mode-line"
585 :button (:toggle . display-time-mode)))
586
587(define-key menu-bar-showhide-menu [datetime-separator]
588 '("--"))
589
574(defvar menu-bar-showhide-scroll-bar-menu (make-sparse-keymap "Scroll-bar")) 590(defvar menu-bar-showhide-scroll-bar-menu (make-sparse-keymap "Scroll-bar"))
575 591
576(defun menu-bar-scroll-bar-right () 592(defun menu-bar-scroll-bar-right ()
@@ -1043,7 +1059,7 @@ key (or menu-item)"))
1043 :help "Where to find some extra packages and possible updates")) 1059 :help "Where to find some extra packages and possible updates"))
1044(define-key menu-bar-help-menu [about] 1060(define-key menu-bar-help-menu [about]
1045 '(menu-item "About Emacs" display-splash-screen 1061 '(menu-item "About Emacs" display-splash-screen
1046 :help "Display splash screen, version, and instructions")) 1062 :help "Display version number, copyright info, and basic help"))
1047(define-key menu-bar-help-menu [sep2] 1063(define-key menu-bar-help-menu [sep2]
1048 '("--")) 1064 '("--"))
1049(define-key menu-bar-help-menu [finder-by-keyword] 1065(define-key menu-bar-help-menu [finder-by-keyword]