M-x all-things-emacs

Emacs Key Bindings in MS Word

February 18th, 2007 by Ryan McGeary · 45 Comments

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

  1. Tools > Customize > Customize Keyboard …
  2. Select “All Commands” in the Categories box.
  1. Add new shortcut keys for each of the commands above.

Word 2002 (XP) for Windows

  1. Tools > Customize …
  2. Click the “Keyboard …” button.
  3. Select “All Commands” in the Categories box.
  1. 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.

Tags: misc · osx · windows

45 responses so far ↓

  • 1 piyo // Feb 19, 2007 at 1:48 pm

    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.

    Word (org. keystroke) == Emacs (keystroke)
    ------------------------------------------
    WordLeft (Ctrl+Left) == backwards-word (Meta-B)
    WordRight (Ctrl+Right) == forward-word (Meta-F)
    DeleteBackWord (Ctrl+Backspace) == backward-kill-word (Ctrl+Backspace or Meta+Backspace)
    DeleteWord (Ctrl+Del) == kill-word (Meta-D)
    PageDown (Page Down) == scroll-up? (Ctrl+V)
    * That one really gets me irritated if I want to rebind it.
    PageUp (Page Up) == scroll-down? (Meta+V)

    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:

    Word (org. keystroke) == Acrobat Reader
    ---------------------------------------
    ViewZoomWholePage (none) == Actual Size (Ctrl+1)
    ViewPageWidth (none) == Fit Page (Ctrl+2)
    a macro I made (none) == Fit Width (Ctrl+3)

    The macro contains this:

      With ActiveWindow.ActivePane.View.Zoom
        .PageColumns = 1 ' need to reset these
        .PageRows = 1    ' properties as well
        .PageFit = wdPageFitTextFit
      End With

    It works, but it is not robust when in View/Normal mode.

  • 2 piyo // Feb 19, 2007 at 1:51 pm

    woops, my equal equal characters seperating the two fields in my tables got killed. Oh well.

  • 3 Ryan McGeary // Feb 19, 2007 at 1:58 pm

    Piyo, Thanks for the follow-up. I fixed some of the formatting issues where your original characters were gobbled.

  • 4 Emacs Key Bindings in Windows | M-x all-things-emacs // May 10, 2007 at 5:25 pm

    [...] This may very well void the need for Emacs Keybindings in MS Word. [...]

  • 5 VBA on PPT HomeKey EndKey | Technology & Programming Answers // Nov 1, 2013 at 2:42 pm

    […] in the spirit of this old post. […]

  • 6 Nick Merrill // Dec 19, 2013 at 5:21 am

    I also added a shortcut for Ctrl+D by creating the macro
    Selection.Delete Unit:=wdCharacter, Count:=1
    in case anyone wants to add that as well.

  • 7 Emacs key bindings in MS Word | The stupidest thing... // Feb 12, 2014 at 1:31 pm

    […] google search on the title of this post got me to this post. I should have looked […]

  • 8 boxing trainer Seattle // Jul 22, 2015 at 12:51 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 9 amazin gas station video // Jul 24, 2015 at 9:06 am

    ... [Trackback]

    [...] Find More Informations here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 10 amazin gas station video // Jul 24, 2015 at 10:33 am

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 11 dwi defense // Jul 24, 2015 at 9:27 pm

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 12 drunk driving defense lawyers // Jul 24, 2015 at 11:28 pm

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 13 Airport car service atlanta // Jul 25, 2015 at 1:48 pm

    ... [Trackback]

    [...] Read More Infos here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 14 locksmith citrus heights ca // Jul 26, 2015 at 6:32 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 15 where to buy propecia online no prescription // Jul 27, 2015 at 9:04 am

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 16 Cartersville Website Design // Jul 27, 2015 at 2:59 pm

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 17 cleaning services London // Jul 27, 2015 at 6:22 pm

    ... [Trackback]

    [...] Read More Infos here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 18 buy surfboard // Jul 28, 2015 at 6:45 am

    ... [Trackback]

    [...] Informations on that Topic: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 19 Prodaja staklene ambalaze // Aug 1, 2015 at 2:38 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 20 us security // Aug 1, 2015 at 2:30 pm

    ... [Trackback]

    [...] Read More Infos here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 21 www.tiptopplumbers.com // Aug 2, 2015 at 6:16 pm

    ... [Trackback]

    [...] Read More Infos here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 22 a fantastic read // Aug 2, 2015 at 10:30 pm

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 23 brick pavers company // Aug 2, 2015 at 11:30 pm

    ... [Trackback]

    [...] There you will find 65629 more Infos: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 24 www.lcertifiedhandymen.net // Aug 2, 2015 at 11:32 pm

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 25 ventolin cheap // Aug 3, 2015 at 2:07 pm

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 26 air conditioning service in homes // Aug 4, 2015 at 1:05 am

    ... [Trackback]

    [...] Find More Informations here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 27 house power generator // Aug 4, 2015 at 2:15 am

    ... [Trackback]

    [...] Find More Informations here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 28 http://tiptopglassrepair.com // Aug 4, 2015 at 5:58 am

    ... [Trackback]

    [...] There you will find 38886 more Infos: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 29 http://www.supremecontracting.net // Aug 4, 2015 at 4:52 pm

    ... [Trackback]

    [...] Find More Informations here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 30 Will fixing my foundation close the existing cracks or open new ones? // Aug 5, 2015 at 7:25 am

    ... [Trackback]

    [...] Read More Infos here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 31 view publisher site // Aug 5, 2015 at 7:34 am

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 32 he said // Aug 9, 2015 at 6:25 pm

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 33 site // Aug 9, 2015 at 6:54 pm

    ... [Trackback]

    [...] There you will find 28193 more Infos: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 34 mahjong gratuit // Aug 10, 2015 at 10:12 pm

    ... [Trackback]

    [...] Find More Informations here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 35 al3ab // Aug 11, 2015 at 12:09 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 36 he has a good point // Aug 12, 2015 at 10:10 pm

    ... [Trackback]

    [...] There you will find 64879 more Infos: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 37 buy social signals // Aug 12, 2015 at 10:19 pm

    ... [Trackback]

    [...] Informations on that Topic: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 38 hop over to these guys // Aug 12, 2015 at 10:26 pm

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 39 http://chiefelectrical.net // Aug 13, 2015 at 11:40 pm

    ... [Trackback]

    [...] Informations on that Topic: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 40 look at this web-site // Aug 13, 2015 at 11:54 pm

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 41 www.optimumdentist.com // Aug 14, 2015 at 12:04 am

    ... [Trackback]

    [...] There you will find 79952 more Infos: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 42 why not find out more // Aug 14, 2015 at 4:35 am

    ... [Trackback]

    [...] Read More here: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 43 What should I look for when my windshield is replaced? // Aug 14, 2015 at 5:00 am

    ... [Trackback]

    [...] Informations on that Topic: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 44 find more info // Aug 14, 2015 at 6:37 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]

  • 45 How much will this junk cost me? // Aug 14, 2015 at 7:31 am

    ... [Trackback]

    [...] Read More: emacsblog.org/2007/02/18/emacs-key-bindings-in-ms-word/ [...]