all repos — nixfiles @ 92a7d54761559178584c6388e2223df7ec8de995

System and user configuration, managed by nix and home-manager

emacs: fix error when killing current buffer
Alan Pearce alan@alanpearce.eu
Wed, 12 Mar 2025 15:30:21 +0100
commit

92a7d54761559178584c6388e2223df7ec8de995

parent

3a21cd1e5a83e95ffd08204e628100cee51c4b97

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M user/emacs/init.eluser/emacs/init.el
@@ -262,7 +262,7 @@ mac-right-control-modifier 'left         mac-command-modifier 'super
         mac-right-command-modifier 'left
         mac-function-modifier 'hyper)
-  (define-key global-map (kbd "s-w") #'kill-this-buffer))
+  (define-key global-map (kbd "s-w") #'kill-current-buffer))
 
 (use-package avy
   :defer 2
@@ -1375,7 +1375,7 @@ "u" #'universal-argument   ";" #'execute-extended-command
   "a" #'my/ls-code-actions
   "bb" #'consult-buffer
-  "bx" #'kill-this-buffer
+  "bx" #'kill-current-buffer
   "br" #'revert-buffer
   "bk" #'kill-buffer
   "dd" #'dired