Skip to content

Instantly share code, notes, and snippets.

@lamberta
Created April 16, 2010 03:06
Show Gist options
  • Save lamberta/367959 to your computer and use it in GitHub Desktop.
Save lamberta/367959 to your computer and use it in GitHub Desktop.
Mathematica emacs keybindings
(* My Emacs KeyBindings *)
Item[KeyEvent["a", Modifiers -> {Control}], "MoveLineBeginning"],
Item[KeyEvent["e", Modifiers -> {Control}], "MoveLineEnd"],
Item[KeyEvent["Home"],
FrontEndExecute[{
FrontEnd`SelectionMove[FrontEnd`InputNotebook[], Before, Notebook],
FrontEnd`FrontEndToken["ScrollNotebookStart"]
}]],
Item[KeyEvent["End"],
FrontEndExecute[{
FrontEnd`SelectionMove[FrontEnd`InputNotebook[], After, Notebook],
FrontEnd`FrontEndToken["ScrollNotebookEnd"]
}]],
Item[KeyEvent["w", Modifiers -> {Control}], "Cut"],
Item[KeyEvent["w", Modifiers -> {Option}], "Copy"],
Item[KeyEvent["y", Modifiers -> {Control}], Paste[After]],
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment