Lazy load helm
This commit is contained in:
parent
16a2cb593c
commit
fb92599bad
1 changed files with 14 additions and 12 deletions
|
@ -26,8 +26,7 @@
|
||||||
helm-projectile-find-dir)))
|
helm-projectile-find-dir)))
|
||||||
|
|
||||||
(use-package helm
|
(use-package helm
|
||||||
:defer t
|
:defer 2
|
||||||
:commands (helm helm-mode)
|
|
||||||
:init
|
:init
|
||||||
(defvar helm-global-prompt ":: ")
|
(defvar helm-global-prompt ":: ")
|
||||||
(setq-default
|
(setq-default
|
||||||
|
@ -54,11 +53,6 @@
|
||||||
helm-bookmark-show-location t)
|
helm-bookmark-show-location t)
|
||||||
|
|
||||||
:config
|
:config
|
||||||
(require 'helm-files)
|
|
||||||
|
|
||||||
(mapc (lambda (r) (add-to-list 'helm-boring-file-regexp-list r))
|
|
||||||
(list "\\.projects$" "\\.DS_Store$" "\\.cask"))
|
|
||||||
|
|
||||||
(map! (:map (helm-map helm-generic-files-map helm-find-files-map helm-swoop-map helm-projectile-find-file-map)
|
(map! (:map (helm-map helm-generic-files-map helm-find-files-map helm-swoop-map helm-projectile-find-file-map)
|
||||||
"ESC" nil
|
"ESC" nil
|
||||||
"/" nil
|
"/" nil
|
||||||
|
@ -72,17 +66,14 @@
|
||||||
"<tab>" 'helm-execute-persistent-action)
|
"<tab>" 'helm-execute-persistent-action)
|
||||||
(:map (helm-generic-files-map helm-projectile-find-file-map)
|
(:map (helm-generic-files-map helm-projectile-find-file-map)
|
||||||
"ESC" 'helm-keyboard-quit)
|
"ESC" 'helm-keyboard-quit)
|
||||||
(:map helm-find-files-map
|
|
||||||
"C-w" 'helm-find-files-up-one-level
|
|
||||||
"TAB" 'helm-execute-persistent-action)
|
|
||||||
(:map helm-ag-map
|
(:map helm-ag-map
|
||||||
"<backtab>" 'helm-ag-edit)
|
"<backtab>" 'helm-ag-edit)
|
||||||
(:map helm-ag-edit-map
|
(:map helm-ag-edit-map
|
||||||
"<escape>" 'helm-ag--edit-abort
|
"<escape>" 'helm-ag--edit-abort
|
||||||
:n "zx" 'helm-ag--edit-abort)
|
:n "zx" 'helm-ag--edit-abort)
|
||||||
(:map helm-map
|
(:map helm-map
|
||||||
"C-S-n" 'helm-next-source
|
"C-S-n" 'helm-next-source
|
||||||
"C-S-p" 'helm-previous-source
|
"C-S-p" 'helm-previous-source
|
||||||
"C-u" 'helm-delete-minibuffer-contents))
|
"C-u" 'helm-delete-minibuffer-contents))
|
||||||
|
|
||||||
;;; Helm hacks
|
;;; Helm hacks
|
||||||
|
@ -113,8 +104,19 @@
|
||||||
;; Hide mode-line in helm windows
|
;; Hide mode-line in helm windows
|
||||||
(advice-add 'helm-display-mode-line :override 'narf*helm-hide-header)
|
(advice-add 'helm-display-mode-line :override 'narf*helm-hide-header)
|
||||||
|
|
||||||
|
(require 'helm-mode)
|
||||||
(helm-mode 1))
|
(helm-mode 1))
|
||||||
|
|
||||||
|
(use-package helm-files
|
||||||
|
:commands (helm-browse-project helm-find helm-find-files helm-for-files helm-multi-files helm-recentf)
|
||||||
|
:config
|
||||||
|
(map! (:map helm-find-files-map
|
||||||
|
"C-w" 'helm-find-files-up-one-level
|
||||||
|
"TAB" 'helm-execute-persistent-action))
|
||||||
|
|
||||||
|
(mapc (lambda (r) (add-to-list 'helm-boring-file-regexp-list r))
|
||||||
|
(list "\\.projects$" "\\.DS_Store$" "\\.cask")))
|
||||||
|
|
||||||
(use-package helm-ag
|
(use-package helm-ag
|
||||||
:commands (helm-ag
|
:commands (helm-ag
|
||||||
helm-ag-mode
|
helm-ag-mode
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue