From ac1b1995b55737dab4e662700ba21bf261ee99af Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Tue, 26 Jun 2018 16:18:44 +0200 Subject: [PATCH] Conditionally bind persp-switch-to-buffer In the case :feature workspaces is disabled. --- modules/config/default/+bindings.el | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/modules/config/default/+bindings.el b/modules/config/default/+bindings.el index 901696b74..8e6e20c2c 100644 --- a/modules/config/default/+bindings.el +++ b/modules/config/default/+bindings.el @@ -466,6 +466,12 @@ ;; ;; +(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 @@ -474,8 +480,6 @@ ;; Most commonly used :desc "Find file in project" :n "SPC" #'projectile-find-file - :desc "Switch workspace buffer" :n "," #'persp-switch-to-buffer - :desc "Switch buffer" :n "<" #'switch-to-buffer :desc "Browse files" :n "." #'find-file :desc "Toggle last popup" :n "~" #'+popup/toggle :desc "Eval expression" :n "`" #'eval-expression