Set Helm prefix key independent of Helm's packages
Since `helm-command-prefix-key' must be loaded before `helm-config', we don't know if other Helm packages include `helm-config' and invalidate custom prefix key. This change makes prefix binding independent from any Helm package. Conflicts: modules/prelude-helm.el
This commit is contained in:
parent
241fcc76d6
commit
01cb638fad
1 changed files with 6 additions and 0 deletions
|
@ -60,6 +60,12 @@
|
||||||
helm-ff-search-library-in-sexp t
|
helm-ff-search-library-in-sexp t
|
||||||
helm-ff-file-name-history-use-recentf t)
|
helm-ff-file-name-history-use-recentf t)
|
||||||
|
|
||||||
|
;; The default "C-x c" is quite close to "C-x C-c", which quits Emacs.
|
||||||
|
;; Changed to "C-c h". Note: We must set "C-c h" globally, because we
|
||||||
|
;; cannot change `helm-command-prefix-key' once `helm-config' is loaded.
|
||||||
|
(global-set-key (kbd "C-c h") 'helm-command-prefix)
|
||||||
|
(global-unset-key (kbd "C-x c"))
|
||||||
|
|
||||||
(define-key helm-command-map (kbd "o") 'helm-occur)
|
(define-key helm-command-map (kbd "o") 'helm-occur)
|
||||||
(define-key helm-command-map (kbd "g") 'helm-do-grep)
|
(define-key helm-command-map (kbd "g") 'helm-do-grep)
|
||||||
(define-key helm-command-map (kbd "C-c w") 'helm-wikipedia-suggest)
|
(define-key helm-command-map (kbd "C-c w") 'helm-wikipedia-suggest)
|
||||||
|
|
Loading…
Reference in a new issue