Macosxhints.com points us to a way to enable emacs key bindings in Microsoft Word. Just assign new shortcut keys to each of these Word commands (instructions below):
StartOfLine : C-a EndOfLine : C-e LineUp : C-p LineDown : C-n CharLeft : C-b CharRight : C-f
Please feel free to suggest other emacs equivalent Word commands and shortcuts in the comments.
Word 2004 for Mac
- Tools > Customize > Customize Keyboard …
- Select “All Commands” in the Categories box.
- Add new shortcut keys for each of the commands above.
Word 2002 (XP) for Windows
- Tools > Customize …
- Click the “Keyboard …” button.
- Select “All Commands” in the Categories box.
- Add new shortcut keys for each of the commands above.
Note: On Windows, C-p, C-n, and C-f will probably conflict with FilePrint, FileNew, and EditFind, so you may want to remove those existing shortcut keys first.
4 responses so far ↓
It’s funny how I am a keyboard-rebinding Emacs freak, but when it comes to using Word, I don’t bother. Perhaps its because Word’s cursor movement behavior is weird (not-Emacs like) or that comment fields in browsers use Windows default movement keys and Word reinforces that. I must be disappointed by the poor Emacs emulation.
I was checking out other commands to bind and these are necessary IMHO for closer Emacs emulation. Here I list the similar (but not always equal) Emacs command.
Perhaps a combination of built-in commands as Word macros can get us closer to Emacs-like movement.
Also, Microsoft Word (verified on 2000) supports multi-sequence key bindings. I have a macro which changes the screen from black-on-white to white-on-black (like my Emacs), and I bind it with Ctrl+L,B. (This macro simple sets Options.BlueScreen to false or true. “Blue Screen”, eh?)
If you will permit me to get off topic just a bit more. I have two items, which are not Emacs emulation tips:
If you hate the formatting also being copied over when doing regular copying and pasting, may I suggest using the freeware PureText. I bind it to Windows+V and it works very well when C&P between different documents with different styles and fonts.
I find that I like Word to change the view just like Adobe Acrobat Reader, so I rebind Word keystrokes again:
The macro contains this:
It works, but it is not robust when in View/Normal mode.
woops, my equal equal characters seperating the two fields in my tables got killed. Oh well.
Piyo, Thanks for the follow-up. I fixed some of the formatting issues where your original characters were gobbled.
[...] This may very well void the need for Emacs Keybindings in MS Word. [...]
Leave a Comment