branch: externals/olivetti
commit 42d5822a158fb4c2de98cfdf5e5ae184638f2e42
Author: Paul Rankin <he...@paulwrankin.com>
Commit: Paul Rankin <he...@paulwrankin.com>

    Add keymap
    
    C-c [   olivetti-shrink
    C-c ]   olivetti-expand
    
    Fixes #9
---
 olivetti.el | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/olivetti.el b/olivetti.el
index 9c83370..fd113cb 100644
--- a/olivetti.el
+++ b/olivetti.el
@@ -271,7 +271,10 @@ body width set with `olivetti-body-width'.
 
 When `olivetti-hide-mode-line' is non-nil, the mode line is also
 hidden."
+  :init-value nil
   :lighter " Olv"
+  :keymap '(([?\C-c ?\[] . olivetti-shrink)
+            ([?\C-c ?\]] . olivetti-expand))
   (if olivetti-mode
       (progn
         (add-hook 'window-configuration-change-hook

Reply via email to