summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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