diff options
| -rw-r--r-- | lisp/menu-bar.el | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el index 3ca642c8331..b7972b43ab8 100644 --- a/lisp/menu-bar.el +++ b/lisp/menu-bar.el | |||
| @@ -1016,7 +1016,7 @@ mail status in mode line")) | |||
| 1016 | (menu-bar-make-toggle toggle-case-fold-search case-fold-search | 1016 | (menu-bar-make-toggle toggle-case-fold-search case-fold-search |
| 1017 | "Case-Insensitive Search" | 1017 | "Case-Insensitive Search" |
| 1018 | "Case-Insensitive Search %s" | 1018 | "Case-Insensitive Search %s" |
| 1019 | "Globally ignore letter-case in search")) | 1019 | "Ignore letter-case in search commands")) |
| 1020 | 1020 | ||
| 1021 | (defun menu-bar-text-mode-auto-fill () | 1021 | (defun menu-bar-text-mode-auto-fill () |
| 1022 | (interactive) | 1022 | (interactive) |
| @@ -1027,16 +1027,24 @@ mail status in mode line")) | |||
| 1027 | (customize-mark-as-set 'text-mode-hook)) | 1027 | (customize-mark-as-set 'text-mode-hook)) |
| 1028 | 1028 | ||
| 1029 | (define-key menu-bar-options-menu [auto-fill-mode] | 1029 | (define-key menu-bar-options-menu [auto-fill-mode] |
| 1030 | '(menu-item "Word Wrap in Text Modes" | 1030 | '(menu-item "Auto Fill in Text Modes" |
| 1031 | menu-bar-text-mode-auto-fill | 1031 | menu-bar-text-mode-auto-fill |
| 1032 | :help "Automatically fill text between left and right margins (Auto Fill)" | 1032 | :help "Automatically fill text while typing (Auto Fill Mode)" |
| 1033 | :button (:toggle . (if (listp text-mode-hook) | 1033 | :button (:toggle . (if (listp text-mode-hook) |
| 1034 | (member 'turn-on-auto-fill text-mode-hook) | 1034 | (member 'turn-on-auto-fill text-mode-hook) |
| 1035 | (eq 'turn-on-auto-fill text-mode-hook))))) | 1035 | (eq 'turn-on-auto-fill text-mode-hook))))) |
| 1036 | |||
| 1037 | (define-key menu-bar-options-menu [longlines-mode] | ||
| 1038 | '(menu-item "Word Wrap for Long Lines in this Buffer" | ||
| 1039 | longlines-mode | ||
| 1040 | :help "Perform word wrapping for long lines (Long Lines mode)" | ||
| 1041 | :button (:toggle . (and (boundp 'longlines-mode) | ||
| 1042 | longlines-mode)))) | ||
| 1043 | |||
| 1036 | (define-key menu-bar-options-menu [truncate-lines] | 1044 | (define-key menu-bar-options-menu [truncate-lines] |
| 1037 | '(menu-item "Truncate Long Lines in this Buffer" | 1045 | '(menu-item "Truncate Long Lines in this Buffer" |
| 1038 | toggle-truncate-lines | 1046 | toggle-truncate-lines |
| 1039 | :help "Truncate long lines on the screen" | 1047 | :help "Truncate long lines at the window edge " |
| 1040 | :button (:toggle . (if (or (window-full-width-p) | 1048 | :button (:toggle . (if (or (window-full-width-p) |
| 1041 | (not truncate-partial-width-windows)) | 1049 | (not truncate-partial-width-windows)) |
| 1042 | truncate-lines | 1050 | truncate-lines |