all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Anselm Helbig <anselm.helbig+news2009@googlemail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: forward/backward word with case sensitivity
Date: Tue, 28 Jul 2009 10:27:00 +0200	[thread overview]
Message-ID: <87tz0x8b6z.wl%anselm.helbig+news2009@googlemail.com> (raw)
In-Reply-To: <92744345-13a4-4e5d-8f25-f6c70cd00f3a@i8g2000pro.googlegroups.com>

Hi!

> I'm wondering how to use the case sensitive buffer editing in buffer.
> For example, in the kill-word function (M-d), how I can set it to kill
> up to the final lower case, not space, comma, etc. as follows:
> testFunction()
> ^ (Here, M-d)
> Function()

I'm using c-subword-mode with ruby, to this end I've got this line in
my .emacs:

  (add-hook 'ruby-mode-hook (lambda () (c-subword-mode 1)))

You can try it out yourself with M-x subword-mode. This doesn't only
affect `kill-word' but changes emacs notion about what a word is in
the current buffer, so `forward-word' and `backward-word' are affected
as well.

HTH, 

Anselm



-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


  parent reply	other threads:[~2009-07-28  8:27 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-28  7:16 forward/backward word with case sensitivity Kiwon Um
2009-07-28  7:37 ` Thierry Volpiatto
     [not found] ` <mailman.3306.1248767060.2239.help-gnu-emacs@gnu.org>
2009-07-28  8:01   ` Kiwon Um
2009-07-28  8:27 ` Anselm Helbig [this message]
2009-07-28  9:00   ` Thierry Volpiatto
2009-07-28  9:25   ` Kiwon Um
     [not found]   ` <mailman.3312.1248772055.2239.help-gnu-emacs@gnu.org>
2009-07-28  9:27     ` Kiwon Um
2009-07-28 10:21 ` Elena

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=87tz0x8b6z.wl%anselm.helbig+news2009@googlemail.com \
    --to=anselm.helbig+news2009@googlemail.com \
    --cc=help-gnu-emacs@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.