simplify helm-config

This commit is contained in:
Ivan Malison 2016-06-11 00:32:51 -07:00
parent a5aece3274
commit f95d995e1d

View File

@ -584,19 +584,7 @@ I use helm for almost all emacs completion
("C-h a" . helm-apropos) ("C-h a" . helm-apropos)
("C-c C-h" . helm-org-agenda-files-headings) ("C-c C-h" . helm-org-agenda-files-headings)
("C-c ;" . helm-recentf)) ("C-c ;" . helm-recentf))
:init :diminish helm-mode
(progn
(helm-mode 1)
(use-package helm-ag
:bind ("C-c p S" . imalison:set-helm-ag-extra-options)
:config
(progn
(setq helm-ag-always-set-extra-option nil)
(defun imalison:set-helm-ag-extra-options ()
(interactive)
(let ((option (read-string "Extra options: " (or helm-ag--extra-options "")
'helm-ag--extra-options-history)))
(setq helm-ag--extra-options option))))))
:config :config
(progn (progn
(setq helm-split-window-default-side 'same) (ref:helm split window) (setq helm-split-window-default-side 'same) (ref:helm split window)
@ -660,6 +648,17 @@ I use helm for almost all emacs completion
:demand t :demand t
:config (helm-descbinds-mode 1)) :config (helm-descbinds-mode 1))
(use-package helm-ag
:bind ("C-c p S" . imalison:set-helm-ag-extra-options)
:config
(progn
(setq helm-ag-always-set-extra-option nil)
(defun imalison:set-helm-ag-extra-options ()
(interactive)
(let ((option (read-string "Extra options: " (or helm-ag--extra-options "")
'helm-ag--extra-options-history)))
(setq helm-ag--extra-options option)))))
(use-package org-projectile (use-package org-projectile
:demand t :demand t
:bind (("C-c n p" . imalison:helm-org-todo)) :bind (("C-c n p" . imalison:helm-org-todo))
@ -680,8 +679,7 @@ I use helm for almost all emacs completion
(org-capture-make-todo-template)))) (org-capture-make-todo-template))))
:candidate-number-limit 99999 :candidate-number-limit 99999
:buffer "*helm org capture templates*")))) :buffer "*helm org capture templates*"))))
(helm-mode 1) (helm-mode 1)))
(diminish 'helm-mode)))
#+END_SRC #+END_SRC
[[(helm split window)][Ensure that helm buffers are started in the window that currently holds the focus]] [[(helm split window)][Ensure that helm buffers are started in the window that currently holds the focus]]