only rebind M-x and C-x C-f on successful loading of helm

to get this basic operations otherwise
This commit is contained in:
Łukasz Pankowski 2019-12-17 21:30:52 +01:00
parent ce4d1c86a8
commit 199b6677d6

View File

@ -132,10 +132,12 @@
(require 'helm-config) ; required to setup "s-c" keymap (require 'helm-config) ; required to setup "s-c" keymap
(helm-mode 1) (helm-mode 1)
(helm-autoresize-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 :bind
(("M-x" . helm-M-x) (("M-y" . helm-show-kill-ring)
("M-y" . helm-show-kill-ring)
("C-x C-f" . helm-find-files)
("C-c o" . helm-occur) ("C-c o" . helm-occur)
("C-x b" . helm-mini) ("C-x b" . helm-mini)
("C-x r b" . helm-bookmarks) ("C-x r b" . helm-bookmarks)