all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
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: Thu, 29 Dec 2011 18:03:31 -0800	[thread overview]
Message-ID: <8a3522a6596fae6db5744651b8b4cfce628556b2.1325210510.git.dancol@dancol.org> (raw)
In-Reply-To: <7a291233e0f23e4e7a6cdeb1beb63ad5b2893b2a.1325210510.git.dancol@dancol.org>

---
 lisp/menu-bar.el |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/lisp/menu-bar.el b/lisp/menu-bar.el
index 9c020ff..e0bd1b9 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.
@@ -1295,6 +1297,12 @@ mail status in mode line"))
        (:visible (and (boundp 'cua-enable-cua-keys)
 		      (not cua-enable-cua-keys)))))
 
+    (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"))
+
     (define-key menu [case-fold-search]
       (menu-bar-make-toggle
        toggle-case-fold-search case-fold-search
-- 
1.7.5.1




  reply	other threads:[~2011-12-30  2:03 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-30  2:03 [PATCH 1/2] Merge subword-mode and capitalized-words-mode Daniel Colascione
2011-12-30  2:03 ` Daniel Colascione [this message]
2011-12-30 11:23 ` Stefan Monnier
2012-01-04 15:54   ` Masatake YAMATO
  -- strict thread matches above, loose matches on Subject: below --
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 2/2] For better visibility, add subword-mode to options menu Daniel Colascione
2012-08-08  7:53   ` Chong Yidong
2012-08-08 16:25     ` 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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8a3522a6596fae6db5744651b8b4cfce628556b2.1325210510.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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.