-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmg
More file actions
23 lines (20 loc) · 772 Bytes
/
mg
File metadata and controls
23 lines (20 loc) · 772 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
; mg (emacs-like text editor) config file
auto-fill-mode
set-fill-column 72
line-number-mode ; display in modeline
; Prevent UTF-8 left quotes pasted from gcc error messages from
; screwing everything up. With meta-key-mode disabled they are pasted
; as \342\200\230 but that is better than translating them as cursor
; move commands.
meta-key-mode 0
; Use "M-x describe-bindings" to see current bindings.
global-set-key "\e[1;5C" forward-word
global-set-key "\e[1;5D" backward-word
global-set-key "\e[5C" forward-word
global-set-key "\e[5D" backward-word
global-set-key "\e\e[C" forward-word
global-set-key "\e\e[D" backward-word
global-set-key "\^[[3~" delete-char
global-set-key "\^cg" goto-line
global-set-key "\^hk" describe-key-briefly
global-set-key "\^z" undo