summaryrefslogtreecommitdiff
path: root/.emacs
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-21 11:57:01 +0100
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-11-21 11:57:01 +0100
commit783af348b770a2e814e5f7080d7f5a9777087427 (patch)
tree1d0d382951d00861afaad326dd406910931ec08f /.emacs
parent8018cce4d1ea00e34f9ed721405664bf803b56ea (diff)
downloaddotfiles-783af348b770a2e814e5f7080d7f5a9777087427.tar.xz
Add bindings for some buffer commands
bury-buffer is useful as a quick way to dismiss a buffer I've brought up for a quick glance; rename-buffer helps persist some classes of buffers (compilation, help, Gnus articles) that get clobbered otherwise.
Diffstat (limited to '.emacs')
-rw-r--r--.emacs6
1 files changed, 6 insertions, 0 deletions
diff --git a/.emacs b/.emacs
index d62e7ef..7825a12 100644
--- a/.emacs
+++ b/.emacs
@@ -136,6 +136,11 @@
map)
,doc))
+(my/define-prefix-command my/buffer-map
+ "Keymap for buffer manipulation commands."
+ '(("b" bury-buffer)
+ ("r" rename-buffer)))
+
(my/define-prefix-command my/display-map
"Keymap for display-related commands."
'(("t" toggle-truncate-lines)
@@ -174,6 +179,7 @@
;; C-c [[:alpha:]] is reserved for users - let's make good use of it.
+(global-set-key (kbd "C-c b") 'my/buffer-map)
(global-set-key (kbd "C-c c") 'compile)
(global-set-key (kbd "C-c d") 'my/display-map)
(global-set-key (kbd "C-c e") 'my/editing-map)