From 199b6677d621bd72340456c51b6d39adafbbe3ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Tue, 17 Dec 2019 21:30:52 +0100 Subject: [PATCH] only rebind M-x and C-x C-f on successful loading of helm to get this basic operations otherwise --- init.el | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/init.el b/init.el index a349e6e..4c14a8b 100644 --- a/init.el +++ b/init.el @@ -132,10 +132,12 @@ (require 'helm-config) ; required to setup "s-c" keymap (helm-mode 1) (helm-autoresize-mode 1) + ;; Only rebind M-x and C-x C-f on successful load of helm to remain + ;; this basic operations if helm is not installed. + (bind-key "M-x" #'helm-M-x) + (bind-key "C-x C-f" #'helm-find-files) :bind - (("M-x" . helm-M-x) - ("M-y" . helm-show-kill-ring) - ("C-x C-f" . helm-find-files) + (("M-y" . helm-show-kill-ring) ("C-c o" . helm-occur) ("C-x b" . helm-mini) ("C-x r b" . helm-bookmarks)