From 2e0d6a7c3d5045ba7aebe1b4c02f5f313af4b705 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 30 Jun 2018 17:41:20 +0200 Subject: [PATCH] Fix workspace switch-buffer keybinds --- modules/config/default/+bindings.el | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modules/config/default/+bindings.el b/modules/config/default/+bindings.el index ed4c8d346..840b4e755 100644 --- a/modules/config/default/+bindings.el +++ b/modules/config/default/+bindings.el @@ -469,12 +469,6 @@ ;; ;; -(if (featurep! :feature workspaces) - (map! :leader :desc "Switch buffer" :n "," #'switch-to-buffer) - (map! :leader :desc "Switch workspace buffer" - :n "," #'persp-switch-to-buffer - :n "<" #'switch-to-buffer)) - (map! :leader :desc "Ex command" :nv ";" #'evil-ex :desc "M-x" :nv ":" #'execute-extended-command @@ -489,6 +483,12 @@ :desc "Blink cursor line" :n "DEL" #'+nav-flash/blink-cursor :desc "Jump to bookmark" :n "RET" #'bookmark-jump + (:when (featurep! :feature workspaces) + :desc "Switch workspace buffer" :n "," #'persp-switch-to-buffer + :desc "Switch buffer" :n "<" #'switch-to-buffer) + (:unless (featurep! :feature workspaces) + :desc "Switch buffer" :n "," #'switch-to-buffer) + ;; C-u is used by evil :desc "Universal argument" :n "u" #'universal-argument :desc "window" :n "w" evil-window-map