diff options
author | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-07 12:08:31 -0700 |
---|---|---|
committer | Sean Whitton <spwhitton@spwhitton.name> | 2020-08-07 13:19:14 -0700 |
commit | 17a8a276b2e9c07d78dc9102e35721ee5e5091af (patch) | |
tree | 7f87a7f43286d2592076c98203121b3003a6c3e5 | |
parent | 7cc4cb920a047ae09dde7ab987ff419991e25729 (diff) | |
download | dotfiles-17a8a276b2e9c07d78dc9102e35721ee5e5091af.tar.gz |
bind rename-uniquely
-rw-r--r-- | .emacs.d/init-spw.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/.emacs.d/init-spw.el b/.emacs.d/init-spw.el index b6191881..9e8603bd 100644 --- a/.emacs.d/init-spw.el +++ b/.emacs.d/init-spw.el @@ -1339,7 +1339,7 @@ I use by default)." ;; in a different source tree or navigating to a different Info node, nor that ;; we particularly want to avoid either buffer sinking down the buffer list ;; and being forgotten -(global-set-key "\C-cn" #'clone-buffer) +(global-set-key "\C-cnn" #'clone-buffer) ;; In this case, by contrast, we're saying that we want two versions of the ;; buffer specifically because (i) we don't want the buffer contents to be @@ -1348,6 +1348,11 @@ I use by default)." ;; point in) the buffer by giving it its own frame or tab, in a way that's ;; lightweight and doesn't involve adding TODO entries (global-set-key "\C-cfs" #'spw/save-buffer-for-later) +(global-set-key "\C-cns" #'spw/save-buffer-for-later) + +;; Finally, this is for when we just want to protect the buffer contents from +;; being overwritten and nothing more +(global-set-key "\C-cnr" #'rename-uniquely) ;; version of `kill-buffer-and-window' which can handle a frame with only a ;; single window |