projects
/
dotfiles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
c1c2a34
)
emacs - windows/buffer mappings kill buffer
author
Peng Li
<seudut@gmail.com>
Sat, 30 Jul 2016 18:57:24 +0000
(
02:57
+0800)
committer
Peng Li
<seudut@gmail.com>
Sat, 30 Jul 2016 18:57:24 +0000
(
02:57
+0800)
emacs.d/config.org
patch
|
blob
|
history
diff --git
a/emacs.d/config.org
b/emacs.d/config.org
index
424117f
..
d3c5db5
100644
(file)
--- a/
emacs.d/config.org
+++ b/
emacs.d/config.org
@@
-1474,6
+1474,7
@@
Color for Man-mode
(dired-why)
(message
"Δ: d-delete, u-ndelete, x-punge, f-ind, o-ther window, R-ename, C-opy, c-create, +new dir, r-evert, h-summary, ?-help,"))
(dired-why)
(message
"Δ: d-delete, u-ndelete, x-punge, f-ind, o-ther window, R-ename, C-opy, c-create, +new dir, r-evert, h-summary, ?-help,"))
+
(setq dired-guess-shell-alist-user
'(("\\.pdf\\'" "evince" "okular")
("\\.\\(?:djvu\\|eps\\)\\'" "evince")
(setq dired-guess-shell-alist-user
'(("\\.pdf\\'" "evince" "okular")
("\\.\\(?:djvu\\|eps\\)\\'" "evince")
@@
-2247,6
+2248,11
@@
Most use =C-o C-o= to switch buffers; =C-o x, v= to split window; =C-o o= to del
;; buffer / windows switch
("o" sd/toggle-max-windows "one" :exit t)
("C-k" sd/delete-current-window "del" :exit t)
;; buffer / windows switch
("o" sd/toggle-max-windows "one" :exit t)
("C-k" sd/delete-current-window "del" :exit t)
+ ("D" (lambda ()
+ (interactive)
+ (kill-buffer)
+ (sd/delete-current-window))
+ "kill" :exit t)
("'" other-window "other" :exit t)
;; ("a" ace-window "ace")
("s" ace-swap-window "swap")
("'" other-window "other" :exit t)
;; ("a" ace-window "ace")
("s" ace-swap-window "swap")