From 62a249e963d1ef62e07c356ef7c33cc04033e102 Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Tue, 17 Mar 2020 17:13:03 +0100 Subject: [PATCH] Don't delay loading helm --- init.org | 71 ++++++++++++++++++++++++++++---------------------------- 1 file changed, 35 insertions(+), 36 deletions(-) diff --git a/init.org b/init.org index 92be262..76bc713 100644 --- a/init.org +++ b/init.org @@ -509,30 +509,30 @@ near the end of the configuration). #+BEGIN_SRC emacs-lisp + (require 'helm) (require 'helm-config) - (with-eval-after-load 'helm - (setq helm-split-window-in-side-p t - helm-M-x-fuzzy-match t - helm-buffers-fuzzy-matching t - helm-recentf-fuzzy-match t - helm-move-to-line-cycle-in-source t - projectile-completion-system 'helm - helm-mini-default-sources '(helm-source-buffers-list - helm-source-recentf - helm-source-bookmarks - helm-source-buffer-not-found)) + (setq helm-split-window-in-side-p t + helm-M-x-fuzzy-match t + helm-buffers-fuzzy-matching t + helm-recentf-fuzzy-match t + helm-move-to-line-cycle-in-source t + projectile-completion-system 'helm + helm-mini-default-sources '(helm-source-buffers-list + helm-source-recentf + helm-source-bookmarks + helm-source-buffer-not-found)) - (when (executable-find "ack") - (setq helm-grep-default-command - "ack -Hn --no-group --no-color %e %p %f" - helm-grep-default-recurse-command - "ack -H --no-group --no-color %e %p %f")) + (when (executable-find "ack") + (setq helm-grep-default-command + "ack -Hn --no-group --no-color %e %p %f" + helm-grep-default-recurse-command + "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-projectile-on) - (helm-adaptive-mode 1)) + (helm-mode 1) + (helm-projectile-on) + (helm-adaptive-mode 1) #+END_SRC *** Helm dash @@ -1259,22 +1259,21 @@ ** Bindings for [[http://emacs-helm.github.io/helm/][Helm]] #+BEGIN_SRC emacs-lisp - (with-eval-after-load 'helm - (define-key helm-map (kbd "") '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 "") 'helm-previous-source) - (define-key helm-map (kbd "") 'helm-next-source) - (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-y") 'helm-show-kill-ring) - (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-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 g") 'helm-google-suggest) - (define-key custom-bindings-map (kbd "M-i") 'helm-swoop) - (define-key custom-bindings-map (kbd "M-I") 'helm-multi-swoop-all)) + (define-key helm-map (kbd "") '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 "") 'helm-previous-source) + (define-key helm-map (kbd "") 'helm-next-source) + (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-y") 'helm-show-kill-ring) + (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-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 g") 'helm-google-suggest) + (define-key custom-bindings-map (kbd "M-i") 'helm-swoop) + (define-key custom-bindings-map (kbd "M-I") 'helm-multi-swoop-all) #+END_SRC ** Bindings for [[https://github.com/bbatsov/projectile][Projectile]]