-
-
Save mguinada/dfd0c7b361d54582508f52b882d27c32 to your computer and use it in GitHub Desktop.
iTerm2 emacs 24.2.1 -nw with paredit on OS X 10.8 Norwegian layout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iTerm2 emacs 24.2.1 -nw with paredit on OS X 10.8 Norwegian layout | |
Left Command is my Meta. | |
Left Alt used for inputting special characters. | |
Caps Lock is mapped to Control. | |
> System Preferences > Keyboard > Keyboard > Special: Caps Lock: ^ Control | |
iTerm > Preferences > Keys: Left Command key mapped to Right Option | |
iTerm > Preferences > Profiles > Keys: Right option acts as: +Esc | |
http://offbytwo.com/2012/01/15/emacs-plus-paredit-under-terminal.html | |
Loaded xterm Defaults. | |
Verified/added escapes for: | |
^⇧↑ Send ^[ [1;6A | |
^⇧↓ Send ^[ [1;6B | |
^⇧→ Send ^[ [1;6C | |
^⇧← Send ^[ [1;6D | |
^⌥↑ Send ^[ [1;8A | |
^⌥↓ Send ^[ [1;8B | |
^⌥→ Send ^[ [1;8C | |
^⌥← Send ^[ [1;8D | |
;; added mappings to .emacs | |
(define-key input-decode-map "\e[1;5A" [C-up]) | |
(define-key input-decode-map "\e[1;5B" [C-down]) | |
(define-key input-decode-map "\e[1;5C" [C-right]) | |
(define-key input-decode-map "\e[1;5D" [C-left]) | |
(define-key input-decode-map "\e[1;6A" [C-S-up]) | |
(define-key input-decode-map "\e[1;6B" [C-S-down]) | |
(define-key input-decode-map "\e[1;6C" [C-S-right]) | |
(define-key input-decode-map "\e[1;6D" [C-S-left]) | |
(define-key input-decode-map "\e[1;8A" [C-M-up]) | |
(define-key input-decode-map "\e[1;8B" [C-M-down]) | |
(define-key input-decode-map "\e[1;8C" [C-M-right]) | |
(define-key input-decode-map "\e[1;8D" [C-M-left]) | |
(define-key input-decode-map "\e[1;9A" [M-up]) | |
(define-key input-decode-map "\e[1;9B" [M-down]) | |
(define-key input-decode-map "\e[1;9C" [M-right]) | |
(define-key input-decode-map "\e[1;9D" [M-left]) | |
(define-key input-decode-map "\e[1;10A" [S-M-up]) | |
(define-key input-decode-map "\e[1;10B" [S-M-down]) | |
(define-key input-decode-map "\e[1;10C" [S-M-right]) | |
(define-key input-decode-map "\e[1;10D" [S-M-left]) | |
(define-key paredit-mode-map (kbd "M-(") 'paredit-wrap-round) | |
(define-key paredit-mode-map (kbd "C-S-<left>") 'paredit-backward-slurp-sexp) | |
(define-key paredit-mode-map (kbd "C-S-<right>") 'paredit-backward-barf-sexp) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment