From 27eda82b953f153199d3622e86e2a84d35e9ccbe Mon Sep 17 00:00:00 2001 From: Lars Tveito Date: Sun, 24 May 2015 02:04:50 +0200 Subject: [PATCH] Binding for enabling focus-read-only-mode in focus-mode --- focus.el | 3 +++ 1 file changed, 3 insertions(+) diff --git a/focus.el b/focus.el index e79aa47..2386733 100644 --- a/focus.el +++ b/focus.el @@ -205,6 +205,9 @@ This is added to the `pre-command-hook' when (define-minor-mode focus-mode "Dim the font color of text in surrounding sections." :init-value nil + :keymap (let ((map (make-sparse-keymap))) + (define-key map (kbd "C-c C-q") 'focus-read-only-mode) + map) (if focus-mode (focus-init) (focus-terminate))) ;;;###autoload