summary refs log tree commit diff
path: root/emacs.d/init.el
diff options
context:
space:
mode:
authorFranck Cuny <franck.cuny@gmail.com>2017-04-27 09:02:01 -0700
committerFranck Cuny <franck.cuny@gmail.com>2017-04-27 09:02:01 -0700
commit9fada07f33f142392365d0ef7557b58c23abcbae (patch)
tree741e3096012d9d194a5a865261b9050a37808168 /emacs.d/init.el
parent[Emacs] small adjustment to wabi-sabi. (diff)
downloademacs.d-9fada07f33f142392365d0ef7557b58c23abcbae.tar.gz
[Emacs] update binding for ag
Diffstat (limited to 'emacs.d/init.el')
-rw-r--r--emacs.d/init.el10
1 files changed, 8 insertions, 2 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
index dc068ec..36208b2 100644
--- a/emacs.d/init.el
+++ b/emacs.d/init.el
@@ -47,8 +47,14 @@
   ;; interface to the 'ag' tool
   :ensure t
   :commands (counsel-ag ag)
-  :init
-  (setq ag-reuse-buffers t
+  :bind (:map ag-mode-map
+              ("p" . compilation-previous-error)
+              ("n" . compilation-next-error)
+              ("N" . compilation-next-file)
+              ("P" . compilation-previous-file))
+  :config
+  (setq ag-highlight-search t
+        ag-reuse-buffers t
         ag-reuse-window t))
 
 (use-package autorevert