Emacs: search hidden files with counsel-ag
Alan Pearce alan@alanpearce.eu
Fri, 21 Dec 2018 11:17:12 +0100
1 files changed, 1 insertions(+), 0 deletions(-)
jump to
M emacs/.emacs.d/main.el → emacs/.emacs.d/main.el
@@ -1361,6 +1361,7 @@ (bind-key "C-x C-f" #'counsel-find-file) (bind-key "M-y" #'counsel-yank-pop) (bind-key "C-x i" #'counsel-imenu) (bind-key "M-y" #'ivy-next-line ivy-minibuffer-map) + (setq counsel-ag-base-command "ag --nocolor --nogroup --hidden %s") (defadvice counsel-find-file (after find-file-sudo activate) "Find file as root if necessary." (when (and buffer-file-name