From a488c308bb050abd2dc9ef17de25bcdc99ebc1cd Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 26 Dec 2019 14:47:53 -0500 Subject: [PATCH] config/default: fix switch-buffer keys for vanilla users Closes #2256 --- modules/config/default/+emacs-bindings.el | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/modules/config/default/+emacs-bindings.el b/modules/config/default/+emacs-bindings.el index 6ebca7a8d..45c809563 100644 --- a/modules/config/default/+emacs-bindings.el +++ b/modules/config/default/+emacs-bindings.el @@ -300,12 +300,15 @@ "M-SPC" #'objed-activate) ;;; buffer management - "C-x b" #'persp-switch-to-buffer - (:when (featurep! :completion ivy) - "C-x 4 b" #'+ivy/switch-workspace-buffer-other-window) + "C-x b" #'switch-to-buffer + "C-x 4 b" #'switch-to-buffer-other-window + (:when (featurep! :ui workspaces) + "C-x b" #'persp-switch-to-buffer + "C-x B" #'switch-to-buffer + "C-x 4 B" #'switch-to-buffer-other-window + (:when (featurep! :completion ivy) + "C-x 4 b" #'+ivy/switch-workspace-buffer-other-window)) "C-x C-b" #'ibuffer-list-buffers - "C-x B" #'switch-to-buffer - "C-x 4 B" #'switch-to-buffer-other-window "C-x K" #'doom/kill-this-buffer-in-all-windows ;;; company-mode