Fixed ack.

The recursive-by-default-hack was not as simple as expected.
This commit is contained in:
Lars Tveito 2015-04-17 01:15:53 +02:00
parent d6209484fb
commit af2c7aad69

View File

@ -449,10 +449,8 @@
configurations. configurations.
~helm~ has a wonderful feature, being able to grep files by ~C-s~ ~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 anywhere, which is useful. [[http://beyondgrep.com/][ack]] is a great ~grep~-replacement, and is
(which you can do by ~C-u C-s~). [[http://beyondgrep.com/][ack]] is a great ~grep~-replacement, and designed to search source code, so I want to use that if it's available.
is designed to search source code. Let's replace ~grep~ with ~ack~ and do
recursive searches by default.
Note that some changes in bindings are located in the key bindings (found Note that some changes in bindings are located in the key bindings (found
near the end of the configuration). near the end of the configuration).
@ -469,7 +467,10 @@
projectile-completion-system 'helm) projectile-completion-system 'helm)
(when (executable-find "ack") (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-mode 1)
(helm-projectile-on) (helm-projectile-on)
@ -955,7 +956,7 @@
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(eval-after-load "geiser" (eval-after-load "geiser"
'(setq geiser-active-implementations '(racket))) '(setq geiser-active-implementations '(guile racket)))
#+END_SRC #+END_SRC
** Java and C ** Java and C