all repos — archive/dotfiles @ 5c3e9460065fdf9a08e64b92823fe1bab05b4005

Superseded by nixfiles

Emacs: Make ag also search hidden files
Alan Pearce alan@alanpearce.eu
Mon, 21 May 2018 12:28:49 +0200
commit

5c3e9460065fdf9a08e64b92823fe1bab05b4005

parent

9c4f9e89943bcf3eedb100b230db56e6274c3a51

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

jump to
M emacs/.emacs.d/main.elemacs/.emacs.d/main.el
@@ -447,7 +447,9 @@ ;;;;; The Silver Searcher 
 (use-package ag
   :defer 30
-  :config (setq ag-project-root-function #'projectile-project-root))
+  :config (progn
+            (setq ag-project-root-function #'projectile-project-root)
+            (add-to-list 'ag-arguments "--hidden")))
 
 (use-package wgrep-ag
   :after ag)