unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Redefining (forward-word) and (backward-word)
@ 2008-05-04 15:08 troelskn
  2008-05-04 17:56 ` Johan Bockgård
  0 siblings, 1 reply; 4+ messages in thread
From: troelskn @ 2008-05-04 15:08 UTC (permalink / raw)
  To: help-gnu-emacs

Hi list,
I have been using Emacs for some time now, but there is one thing
about the cursor-movement that bothers me and I haven't found a way to
hack around it. I'm sure someone else have tried this before, but I'm
at loss at what to google for, to find it. So, does anybody at this
list know, or have an idea about how, to achieve the following:

First, assume Emacs' default cursor-movement (The | character is the
cursor-position):
|lorem ipsum dolor sit amet
(forward-word)
lorem| ipsum dolor sit amet
(forward-word)
lorem ipsum| dolor sit amet
(backward-word)
lorem |ipsum dolor sit amet

What I would like instead, is this:
|lorem ipsum dolor sit amet
(my-forward-word)
lorem| ipsum dolor sit amet
(my-forward-word)
lorem |ipsum dolor sit amet
(my-backward-word)
lorem| ipsum dolor sit amet

So basically, my-forward-word moves the cursor forward, until it
reaches a word-boundary.

Any ideas?

--
troels

lorem ipsum dolor sit amet


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-05-05  9:02 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-05-04 15:08 Redefining (forward-word) and (backward-word) troelskn
2008-05-04 17:56 ` Johan Bockgård
2008-05-05  8:33   ` Andreas Röhler
2008-05-05  9:02   ` troelskn

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).