aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/init.org
diff options
context:
space:
mode:
authorMiquel Sabaté Solà <msabate@suse.com>2020-04-23 13:03:51 +0200
committerMiquel Sabaté Solà <msabate@suse.com>2020-04-23 13:03:51 +0200
commita92815a6957f53a75f2dbb5f2a3c4420548f0be2 (patch)
tree0777a56b9b6e0a0ce38e001ea2646ce85383bcb7 /.emacs.d/init.org
parentf38a50916e67ef4b383ee33086ade8436de7c8e6 (diff)
downloaddotfiles-a92815a6957f53a75f2dbb5f2a3c4420548f0be2.tar.gz
dotfiles-a92815a6957f53a75f2dbb5f2a3c4420548f0be2.zip
emacs: user C-X for killing the buffer and the window
Thus moving away from the leader key and being more in sync with the default C-x which I'm already using. Signed-off-by: Miquel Sabaté Solà <msabate@suse.com>
Diffstat (limited to '.emacs.d/init.org')
-rw-r--r--.emacs.d/init.org7
1 files changed, 3 insertions, 4 deletions
diff --git a/.emacs.d/init.org b/.emacs.d/init.org
index 447095c..84a98ef 100644
--- a/.emacs.d/init.org
+++ b/.emacs.d/init.org
@@ -422,10 +422,11 @@ When hacking your own theme, sometimes you want to know what face is the one tha
** General global key bindings
-Now, this section is full of general miscellaneous stuff. First of all, use =kill-this-buffer= instead of =kill-buffer=, which is utterly pointless when interacting with GNU Emacs as a user.
+Now, this section is full of general miscellaneous stuff. First of all, use =kill-this-buffer= instead of =kill-buffer=, which is utterly pointless when interacting with GNU Emacs as a user. Moreover, I'm using the similar @@html:<kbd>C-x K</kbd>@@ as a binding for killing the current buffer and window.
#+BEGIN_SRC elisp
- (global-set-key (kbd "C-x k") 'kill-this-buffer)
+(global-set-key (kbd "C-x k") 'kill-this-buffer)
+(global-set-key (kbd "C-x K") 'kill-buffer-and-window)
#+END_SRC
Disable @@html:<kbd>C-z</kbd>@@, which will be later on be picked up by =evil-mode= configuration as the escape sequence. This is here to make sure that it will be disabled even if =evil-mode= is not on.
@@ -1085,7 +1086,6 @@ I start by defining the =evil-leader= package, which brings the @@html:<kbd>lead
|-----+-------------------------------------------------|
| a | Spin up =helm-ag=. This is defined earlier. |
| c | Delete the current window. |
-| k | Kill the current buffer and the current window. |
| v | Split the window right. |
| V | Split the window right and move to it. |
@@ -1099,7 +1099,6 @@ I start by defining the =evil-leader= package, which brings the @@html:<kbd>lead
(setq evil-leader/in-all-states 1)
(evil-leader/set-key
"c" 'delete-window
- "k" 'kill-buffer-and-window
"v" 'split-window-right
"V" (lambda () (interactive) (split-window-right) (other-window 1))))
#+END_SRC