From 0fb76734cf00a635397b711511967bcf0912fc1e Mon Sep 17 00:00:00 2001 From: Jim Myhrberg Date: Sun, 2 Jun 2013 15:31:50 +0300 Subject: [PATCH] Customize ack-mode to enable "q" keybinding to close result buffer --- mode-customizations.el | 1 + mode-customizations/ack-mode.el | 5 +++++ 2 files changed, 6 insertions(+) create mode 100644 mode-customizations/ack-mode.el diff --git a/mode-customizations.el b/mode-customizations.el index fce480e..f3adf71 100644 --- a/mode-customizations.el +++ b/mode-customizations.el @@ -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")) diff --git a/mode-customizations/ack-mode.el b/mode-customizations/ack-mode.el new file mode 100644 index 0000000..a7c47f9 --- /dev/null +++ b/mode-customizations/ack-mode.el @@ -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)