Use helm-do-ag instead of helm-ag #805

Fixes project search matching against the leading file name.

And ensures modeline remains disabled.
This commit is contained in:
Henrik Lissner 2018-08-15 19:44:09 +02:00
parent 104e01f588
commit 11b8ee55a1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
2 changed files with 14 additions and 16 deletions

View file

@ -114,10 +114,14 @@ be negative.")
plist)))
(advice-add #'helm :filter-args #'+helm*replace-prompt)
(defun +helm*hide-mode-line (&rest _)
(unless helm-mode-line-string
(hide-mode-line-mode +1)))
(advice-add #'helm-display-mode-line :override #'+helm*hide-mode-line)
;; Hide the modeline
(defun +helm|hide-mode-line (&rest _)
(with-current-buffer (helm-buffer-get)
(unless helm-mode-line-string
(hide-mode-line-mode +1))))
(add-hook 'helm-after-initialize-hook #'+helm|hide-mode-line)
(advice-add #'helm-display-mode-line :override #'+helm|hide-mode-line)
(advice-add #'helm-ag-show-status-default-mode-line :override #'ignore)
(defun +helm*hide-minibuffer-maybe ()
"Hide minibuffer in Helm session if we use the header line as input field."