[OS X Emacs] forward-word binding

Nicholas Reich nick.reich at gmail.com
Sat Aug 2 14:13:29 EDT 2008

Nathaniel et al-

Thanks for your suggestions. I will try to use \M-left/ and \M-right  

I've tried to implement them but the behavior that I describe below is  
not changing once I've created the Preferences.el file.  My questions  
boil down to two issues:

(1) perhaps the function I'm looking for is not 'forward-word.  I am  
particularly interested in the function that will jump from word to  
word and will even jump into the middle of a set of parentheses,  
rather than jumping over anything contained within them.

(2) Even if the function that I'm looking for is 'forward-word,  
creating the Preferences.el in ~/Library/Application Support/Aquamacs  
Emacs/Preferences.el does not seem to have any impact on the behavior  
of Aquamacs.  I've obviously tried quitting the application and even  
restarting the computer in an attempt to have any changes take effect.


On Aug 1, 2008, at 7:09 PM, Nathaniel Cunningham wrote:

> On Fri, Aug 1, 2008 at 2:53 PM, Nicholas Reich  
> <nick.reich at gmail.com> wrote:
> I just installed Aquamacs 1.4 and one keystroke that I used all the  
> time has been changed!
> Specifically, when I used to type control-left/right the cursor  
> would move one word (ignoring parentheses) in either direction.  I  
> suspect, but don't know for sure, that this is the 'forward-word  
> function.
> FYI, the change was made in order to match standard OS X behavior.  
> (Option-left/right was similarly intended to be changed to backward/ 
> forward-word in 1.4, but your email has brought it to my attention  
> that it was missed somehow!)
> I'd like to bring back the old behavior to the control commands.
> How can I do this?  I tried editing the osxkeys.el file in / 
> Applications/Aquamacs\ Emacs.app/Contents/Resources/site-lisp/ 
> macosx/ with the lines
> In general, users should not edit the files within Aquamacs  
> Emacs.app (you'll lose your customizations when you change versions,  
> and it will be hard to distinguish built-in behaviors from the  
> effects of your personal settings).  Instead, make changes to
> ~/Library/Application Support/Aquamacs Emacs/Preferences.el
> The lines
> (global-set-key [(\C right)] 'forward-word)
> (global-set-key [(\C left)] 'backward-word)
> should do what you want, but you may want to consider using \M  
> instead of \C here, to match standard OS X behavior.
> --Nathaniel
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx

More information about the MacOSX-Emacs mailing list