Don't delay loading helm

This commit is contained in:
Lars Tveito 2020-03-17 17:13:03 +01:00
parent 3120e73302
commit 62a249e963

View File

@ -509,30 +509,30 @@
near the end of the configuration). near the end of the configuration).
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(require 'helm)
(require 'helm-config) (require 'helm-config)
(with-eval-after-load 'helm (setq helm-split-window-in-side-p t
(setq helm-split-window-in-side-p t helm-M-x-fuzzy-match t
helm-M-x-fuzzy-match t helm-buffers-fuzzy-matching t
helm-buffers-fuzzy-matching t helm-recentf-fuzzy-match t
helm-recentf-fuzzy-match t helm-move-to-line-cycle-in-source t
helm-move-to-line-cycle-in-source t projectile-completion-system 'helm
projectile-completion-system 'helm helm-mini-default-sources '(helm-source-buffers-list
helm-mini-default-sources '(helm-source-buffers-list helm-source-recentf
helm-source-recentf helm-source-bookmarks
helm-source-bookmarks helm-source-buffer-not-found))
helm-source-buffer-not-found))
(when (executable-find "ack") (when (executable-find "ack")
(setq helm-grep-default-command (setq helm-grep-default-command
"ack -Hn --no-group --no-color %e %p %f" "ack -Hn --no-group --no-color %e %p %f"
helm-grep-default-recurse-command helm-grep-default-recurse-command
"ack -H --no-group --no-color %e %p %f")) "ack -H --no-group --no-color %e %p %f"))
(set-face-attribute 'helm-selection nil :background "cyan") (set-face-attribute 'helm-selection nil :background "cyan")
(helm-mode 1) (helm-mode 1)
(helm-projectile-on) (helm-projectile-on)
(helm-adaptive-mode 1)) (helm-adaptive-mode 1)
#+END_SRC #+END_SRC
*** Helm dash *** Helm dash
@ -1259,22 +1259,21 @@
** Bindings for [[http://emacs-helm.github.io/helm/][Helm]] ** Bindings for [[http://emacs-helm.github.io/helm/][Helm]]
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(with-eval-after-load 'helm (define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action)
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) (define-key helm-map (kbd "C-i") 'helm-execute-persistent-action)
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) (define-key helm-map (kbd "C-z") 'helm-select-action)
(define-key helm-map (kbd "C-z") 'helm-select-action) (define-key helm-map (kbd "<left>") 'helm-previous-source)
(define-key helm-map (kbd "<left>") 'helm-previous-source) (define-key helm-map (kbd "<right>") 'helm-next-source)
(define-key helm-map (kbd "<right>") 'helm-next-source) (define-key custom-bindings-map (kbd "C-c h") 'helm-command-prefix)
(define-key custom-bindings-map (kbd "C-c h") 'helm-command-prefix) (define-key custom-bindings-map (kbd "M-x") 'helm-M-x)
(define-key custom-bindings-map (kbd "M-x") 'helm-M-x) (define-key custom-bindings-map (kbd "M-y") 'helm-show-kill-ring)
(define-key custom-bindings-map (kbd "M-y") 'helm-show-kill-ring) (define-key custom-bindings-map (kbd "C-x b") 'helm-mini)
(define-key custom-bindings-map (kbd "C-x b") 'helm-mini) (define-key custom-bindings-map (kbd "C-x C-f") 'helm-find-files)
(define-key custom-bindings-map (kbd "C-x C-f") 'helm-find-files) (define-key custom-bindings-map (kbd "C-c h d") 'helm-dash-at-point)
(define-key custom-bindings-map (kbd "C-c h d") 'helm-dash-at-point) (define-key custom-bindings-map (kbd "C-c h o") 'helm-occur)
(define-key custom-bindings-map (kbd "C-c h o") 'helm-occur) (define-key custom-bindings-map (kbd "C-c h g") 'helm-google-suggest)
(define-key custom-bindings-map (kbd "C-c h g") 'helm-google-suggest) (define-key custom-bindings-map (kbd "M-i") 'helm-swoop)
(define-key custom-bindings-map (kbd "M-i") 'helm-swoop) (define-key custom-bindings-map (kbd "M-I") 'helm-multi-swoop-all)
(define-key custom-bindings-map (kbd "M-I") 'helm-multi-swoop-all))
#+END_SRC #+END_SRC
** Bindings for [[https://github.com/bbatsov/projectile][Projectile]] ** Bindings for [[https://github.com/bbatsov/projectile][Projectile]]