From af2c7aad698676d56d04ae208d872bf98499adde Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Fri, 17 Apr 2015 01:15:53 +0200 Subject: [PATCH] Fixed ack. The recursive-by-default-hack was not as simple as expected. --- init.org | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/init.org b/init.org index 2440ae3..bd47827 100644 --- a/init.org +++ b/init.org @@ -449,10 +449,8 @@ configurations. ~helm~ has a wonderful feature, being able to grep files by ~C-s~ - anywhere; this is useful, but I almost always want to do recursive greps - (which you can do by ~C-u C-s~). [[http://beyondgrep.com/][ack]] is a great ~grep~-replacement, and - is designed to search source code. Let's replace ~grep~ with ~ack~ and do - recursive searches by default. + anywhere, which is useful. [[http://beyondgrep.com/][ack]] is a great ~grep~-replacement, and is + designed to search source code, so I want to use that if it's available. Note that some changes in bindings are located in the key bindings (found near the end of the configuration). @@ -469,7 +467,10 @@ projectile-completion-system 'helm) (when (executable-find "ack") - (setq helm-grep-default-command "ack -H --no-group --no-color %e %p %f")) + (setq helm-grep-default-command + "ack -Hn --no-group --no-color %e %p %f" + helm-grep-default-recurse-command + "ack -H --no-group --no-color %e %p %f")) (helm-mode 1) (helm-projectile-on) @@ -955,7 +956,7 @@ #+BEGIN_SRC emacs-lisp (eval-after-load "geiser" - '(setq geiser-active-implementations '(racket))) + '(setq geiser-active-implementations '(guile racket))) #+END_SRC ** Java and C