-
Notifications
You must be signed in to change notification settings - Fork 0
/
handy-mode-werd.el
66 lines (54 loc) · 1.72 KB
/
handy-mode-werd.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
;; handy-mode
;; Copyright (C) 2015-2019 David Capello
(defvar handy-mode-werd-map
(handy-make-keymap
"M-w" 'handy-shrink-whitespace
"M-e" 'backward-kill-word
"M-r" 'kill-word
"M-d" 'delete-backward-char
"M-f" 'delete-char
"M-g" 'kill-line
"M-W" 'handy-close-file
"M-D" 'backward-kill-sexp
"M-F" 'kill-sexp
"M-G" 'handy-backward-kill-line
;; Overridden keybindings
"ESC M-e" 'forward-sentence
"ESC M-r" 'move-to-window-line-top-bottom
))
(define-minor-mode handy-mode-werd
"Enable WERDFG keys.
.-----------------. .-----.-----.-----.-----.
| W E R | | | | | |
'-----. '-----| |-----' '-----|
| D F G | | |
.-----------'-----------------|-----'-----------------'
| | |
'-----------. '-----------|
| |
'-----------------------------'
M-w : `handy-shrink-whitespace'
M-e : `backward-kill-word'
M-r : `kill-word'
M-d : `delete-backward-char'
M-f : `delete-char'
M-g : `kill-char'
M-W : `handy-close-file'
M-D : `backward-kill-sexp'
M-F : `kill-sexp'
M-G : `handy-backward-kill-line'
Overridden keybindings:
M-w : `kill-ring-save'
You should be using `M-c' from `handy-mode-zb' at this moment
M-e : `forward-sentence'
Use `ESC M-e' instead
M-r : `move-to-window-line-top-bottom'
Use `ESC M-r' instead
M-d : `kill-word'
Use `M-r' instead
M-f : `forward-word'
You should be using `M-o' from `handy-mode-jlik' at this moment
"
:global t
:group 'handy-mode
:keymap handy-mode-werd-map)