emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/olivetti 42d5822 048/134: Add keymap


From: Stefan Monnier
Subject: [elpa] externals/olivetti 42d5822 048/134: Add keymap
Date: Thu, 25 Apr 2019 09:57:26 -0400 (EDT)

branch: externals/olivetti
commit 42d5822a158fb4c2de98cfdf5e5ae184638f2e42
Author: Paul Rankin <address@hidden>
Commit: Paul Rankin <address@hidden>

    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

[Prev in Thread] Current Thread [Next in Thread]