Guest User

Untitled

a guest
Oct 27th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. {
  2. /* Keybindings for emacs emulation. Compiled by Jacob Rus.
  3. *
  4. * This is a pretty good set, especially considering that many emacs bindings
  5. * such as C-o, C-a, C-e, C-k, C-y, C-v, C-f, C-b, C-p, C-n, C-t, and
  6. * perhaps a few more, are already built into the system.
  7. *
  8. * BEWARE:
  9. * This file uses the Option key as a meta key. This has the side-effect
  10. * of overriding Mac OS keybindings for the option key, which generally
  11. * make common symbols and non-english letters.
  12. */
  13.  
  14. /* Ctrl shortcuts */
  15. "^l" = "centerSelectionInVisibleArea:"; /* C-l Recenter */
  16. "^/" = "undo:"; /* C-/ Undo */
  17. "^_" = "undo:"; /* C-_ Undo */
  18. "^ " = "setMark:"; /* C-Spc Set mark */
  19. "^\@" = "setMark:"; /* C-@ Set mark */
  20. "^w" = "deleteToMark:"; /* C-w Delete to mark */
  21.  
  22.  
  23. /* Incremental search. */
  24. /* Uncomment these lines If Incremental Search IM is installed */
  25. /* "^s" = "ISIM_incrementalSearch:"; /* C-s Incremental search */
  26. /* "^r" = "ISIM_reverseIncrementalSearch:"; /* C-r Reverse incremental search */
  27. /* "^g" = "abort:"; /* C-g Abort */
  28.  
  29.  
  30. /* Meta shortcuts */
  31. "~f" = "moveWordForward:"; /* M-f Move forward word */
  32. "~b" = "moveWordBackward:"; /* M-b Move backward word */
  33. "~<" = "moveToBeginningOfDocument:"; /* M-< Move to beginning of document */
  34. "~>" = "moveToEndOfDocument:"; /* M-> Move to end of document */
  35. "~v" = "pageUp:"; /* M-v Page Up */
  36. "~/" = "complete:"; /* M-/ Complete */
  37. "~c" = ( "capitalizeWord:", /* M-c Capitalize */
  38. "moveForward:",
  39. "moveForward:");
  40. "~u" = ( "uppercaseWord:", /* M-u Uppercase */
  41. "moveForward:",
  42. "moveForward:");
  43. "~l" = ( "lowercaseWord:", /* M-l Lowercase */
  44. "moveForward:",
  45. "moveForward:");
  46. "~d" = "deleteWordForward:"; /* M-d Delete word forward */
  47. "^~h" = "deleteWordBackward:"; /* M-C-h Delete word backward */
  48. "~\U007F" = "deleteWordBackward:"; /* M-Bksp Delete word backward */
  49. "~t" = "transposeWords:"; /* M-t Transpose words */
  50. "~\@" = ( "setMark:", /* M-@ Mark word */
  51. "moveWordForward:",
  52. "swapWithMark");
  53. "~h" = ( "setMark:", /* M-h Mark paragraph */
  54. "moveToEndOfParagraph:",
  55. "swapWithMark");
  56.  
  57. /* C-x shortcuts */
  58. "^x" = {
  59. "u" = "undo:"; /* C-x u Undo */
  60. "k" = "performClose:"; /* C-x k Close */
  61. "^f" = "openDocument:"; /* C-x C-f Open (find file) */
  62. "^x" = "swapWithMark:"; /* C-x C-x Swap with mark */
  63. "^m" = "selectToMark:"; /* C-x C-m Select to mark*/
  64. "^s" = "saveDocument:"; /* C-x C-s Save */
  65. "^w" = "saveDocumentAs:"; /* C-x C-w Save as */
  66. };
  67.  
  68. }
Add Comment
Please, Sign In to add comment