Mercurial > emacs
changeset 23532:a493aa84f62f
(menu-bar-options-menu): Add options for truncate-lines and show-paren.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Wed, 21 Oct 1998 20:24:41 +0000 |
parents | 37ae25c77df0 |
children | 10a3478e3432 |
files | lisp/menu-bar.el |
diffstat | 1 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/menu-bar.el Wed Oct 21 20:03:07 1998 +0000 +++ b/lisp/menu-bar.el Wed Oct 21 20:24:41 1998 +0000 @@ -420,6 +420,12 @@ (menu-bar-make-toggle toggle-case-fold-search case-fold-search "Case folding in searches" "Case folding in searches %s")) +(define-key menu-bar-options-menu [truncate-lines] + (menu-bar-make-toggle + toggle-truncate-lines truncate-lines + "Line Truncation" "Line Truncation %s" + (prog1 (setq truncate-lines (not truncate-lines)) + (set-buffer-modified-p (buffer-modified-p))))) (define-key menu-bar-options-menu [transient-mark-mode] (menu-bar-make-toggle toggle-transient-mark-mode transient-mark-mode "Transient Mark Mode (highlights region)"