diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-23 22:43:37 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2021-05-23 22:43:37 -0700 |
commit | 7000e98b56fccc97a8de743960ca5de7e6376d9b (patch) | |
tree | ed4956f63acc106a4b1ef7732545fe0fbd050cf6 | |
parent | 2e4630abc4665b789306908310b608c9df5a1bb9 (diff) | |
download | dotfiles-7000e98b56fccc97a8de743960ca5de7e6376d9b.tar.gz |
add a binding to kill the current buffer
-rw-r--r-- | .emacs.d/init-spw.el | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index 81a09756..89fabd8c 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -1445,6 +1445,11 @@ remote hosts, to avoid having to roundtrip all the data." (delete-file file-name) (kill-buffer))))) +(defun spw/kill-this-buffer () + (interactive) + (kill-buffer (current-buffer))) +(global-set-key "\C-ck" #'spw/kill-this-buffer) + (defun spw/vc-delete-this-file () (interactive) (spw/delete-file-and-buffer t)) |