all repos — nixfiles @ 0852a328d7ca0622b66d8fa134101e5a7d42c4da

System and user configuration, managed by nix and home-manager

Emacs: search hidden files with counsel-ag
Alan Pearce alan@alanpearce.eu
Fri, 21 Dec 2018 11:17:12 +0100
commit

0852a328d7ca0622b66d8fa134101e5a7d42c4da

parent

1e9c3de62e6cbdcdd344c51ce60ceafa80e3e830

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/main.elemacs/.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