mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-13 13:13:35 -05:00
Add helm-based org searching commands
This commit is contained in:
@@ -149,5 +149,7 @@
|
||||
(use-package helm-command :commands helm-M-x)
|
||||
(use-package helm-descbinds :commands helm-descbinds)
|
||||
|
||||
(use-package helm-deft :defer t)
|
||||
|
||||
(provide 'core-helm)
|
||||
;;; core-helm.el ends here
|
||||
|
@@ -90,5 +90,19 @@
|
||||
(interactive "<a><!>")
|
||||
(if bang (helm-multi-swoop-all search) (helm-swoop :$query search)))
|
||||
|
||||
;;;###autoload
|
||||
(defun narf/helm-org-search (&optional directory)
|
||||
(interactive)
|
||||
(require 'helm-ag)
|
||||
(require 'helm-deft)
|
||||
(let ((dir (or directory org-directory)))
|
||||
(let ((helm-deft-dir-list `(,dir))
|
||||
(default-directory dir)
|
||||
(helm-ag--default-directory dir))
|
||||
(helm :sources `(,(if directory
|
||||
'helm-source-deft-fn
|
||||
'helm-source-projectile-files-list)
|
||||
helm-source-do-ag)))))
|
||||
|
||||
(provide 'defuns-helm)
|
||||
;;; defuns-helm.el ends here
|
||||
|
Reference in New Issue
Block a user