diff options
| author | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-11-21 11:57:01 +0100 |
|---|---|---|
| committer | Kévin Le Gouguec <kevin.legouguec@gmail.com> | 2020-11-21 11:57:01 +0100 |
| commit | 783af348b770a2e814e5f7080d7f5a9777087427 (patch) | |
| tree | 1d0d382951d00861afaad326dd406910931ec08f /.emacs | |
| parent | 8018cce4d1ea00e34f9ed721405664bf803b56ea (diff) | |
| download | dotfiles-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-- | .emacs | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) |
