From 9fada07f33f142392365d0ef7557b58c23abcbae Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Thu, 27 Apr 2017 09:02:01 -0700 Subject: [Emacs] update binding for ag --- emacs.d/init.el | 10 ++++++++-- 1 file 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 -- cgit 1.4.1