From: Daniel Colascione <dancol@dancol.org>
To: emacs-devel@gnu.org
Subject: [PATCH 2/2] For better visibility, add subword-mode to options menu
Date: Tue, 07 Aug 2012 10:03:52 -0700 [thread overview]
Message-ID: <fae08df69ec829acfb0810ee431e09fe4e4ce32a.1344358927.git.dancol@dancol.org> (raw)
In-Reply-To: <cover.1344358926.git.dancol@dancol.org>
---
| 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
--git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 75814fb..686537b 100644
--- a/lisp/menu-bar.el
+++ b/lisp/menu-bar.el
@@ -34,6 +34,8 @@
;; From emulation/cua-base.el; used below
(defvar cua-enable-cua-keys)
+;; From progmodes/subword.el; used below
+(defvar global-subword-mode)
;; Don't clobber an existing menu-bar keymap, to preserve any menu-bar key
;; definitions made in loaddefs.el.
@@ -1268,6 +1270,12 @@ mail status in mode line"))
(:visible (and (boundp 'cua-enable-cua-keys)
(not cua-enable-cua-keys)))))
+ (bindings--define-key menu [subword-mode]
+ (menu-bar-make-mm-toggle
+ global-subword-mode
+ "Treat WordsWithCaps as separate words"
+ "Treat each capitalized part of a word as a separate word"))
+
(bindings--define-key menu [case-fold-search]
(menu-bar-make-toggle
toggle-case-fold-search case-fold-search
--
1.7.2.5
next prev parent reply other threads:[~2012-08-07 17:03 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-07 17:03 [PATCH 0/2] Merge subword-mode and capitalized-words-mode; add to UI Daniel Colascione
2012-08-07 17:03 ` [PATCH 1/2] Merge subword-mode and capitalized-words-mode Daniel Colascione
2012-08-07 18:33 ` Masatake YAMATO
2012-08-07 20:43 ` Daniel Colascione
2012-08-07 21:00 ` Daniel Colascione
2012-08-08 2:58 ` Eli Zaretskii
2012-08-07 20:37 ` Stefan Monnier
2012-08-07 17:03 ` Daniel Colascione [this message]
2012-08-08 7:53 ` [PATCH 2/2] For better visibility, add subword-mode to options menu Chong Yidong
2012-08-08 16:25 ` Daniel Colascione
-- strict thread matches above, loose matches on Subject: below --
2011-12-30 2:03 [PATCH 1/2] Merge subword-mode and capitalized-words-mode Daniel Colascione
2011-12-30 2:03 ` [PATCH 2/2] For better visibility, add subword-mode to options menu Daniel Colascione
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=fae08df69ec829acfb0810ee431e09fe4e4ce32a.1344358927.git.dancol@dancol.org \
--to=dancol@dancol.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).