Customize ack-mode to enable "q" keybinding to close result buffer

This commit is contained in:
2013-06-02 15:31:50 +03:00
parent 36a1213957
commit 0fb76734cf
2 changed files with 6 additions and 0 deletions

View File

@@ -3,6 +3,7 @@
;;
;; Programming languages
(load-file (config-path "mode-customizations/ack-mode.el"))
(load-file (config-path "mode-customizations/coffee-mode.el"))
(load-file (config-path "mode-customizations/conf-mode.el"))
(load-file (config-path "mode-customizations/css-mode.el"))

View File

@@ -0,0 +1,5 @@
(defun customizations-for-ack-mode ()
(interactive)
(define-key ack-mode-map (kbd "q") 'kill-this-buffer))
(add-hook 'ack-mode-hook 'customizations-for-ack-mode)