From d8358f7d7d2e97d6c695aa6dbeca4b37ed6faa85 Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Fri, 8 Feb 2019 15:15:23 +0000 Subject: [PATCH] Swap M-x and C-x C-m keybindings between smex and helm-command I mostly use C-x C-m instead of M-x as I for some reason find it less annoying to type. I really like helm-command's helm-M-x function, but I find slightly too slow and slightly too intrusive than smex. Hence I'm switching back my main keybinding to smex, but still leaving helm-M-x bound to the M-x keybinding I use very rarely, just so I can still access it when I need to. --- modules/editor/siren-helm-command.el | 3 +-- modules/editor/siren-smex.el | 3 ++- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/editor/siren-helm-command.el b/modules/editor/siren-helm-command.el index ad5a69c..3ad60f9 100644 --- a/modules/editor/siren-helm-command.el +++ b/modules/editor/siren-helm-command.el @@ -12,8 +12,7 @@ :ensure helm :defer t :bind - ("C-x C-m" . helm-M-x) - ("C-c C-m" . helm-M-x) + ("M-x" . helm-M-x) :config (setq helm-M-x-always-save-history t diff --git a/modules/editor/siren-smex.el b/modules/editor/siren-smex.el index 2e35d20..613d8d4 100644 --- a/modules/editor/siren-smex.el +++ b/modules/editor/siren-smex.el @@ -8,7 +8,8 @@ (use-package smex :bind - ("M-x" . smex) + ("C-x C-m" . smex) + ("C-c C-m" . smex) ("M-X" . smex-major-mode-commands) ("C-c C-c M-x" . execute-extended-command)