diff --git a/conf-lisp/grep.el b/conf-lisp/grep.el index e7982d8..c4f316c 100644 --- a/conf-lisp/grep.el +++ b/conf-lisp/grep.el @@ -1,3 +1,11 @@ ;; https://github.com/leoliu/ack-el -(use-package ack) +(defun tvd-kill-ack() + ;; FIXME: still asks! + (local-set-key (kbd "q") 'kill-buffer-and-window)) + +(use-package ack + :config + (setq ack-defaults-function 'ack-legacy-defaults)) + +(add-hook 'ack-mode-hook 'tvd-kill-ack)