diff options
Diffstat (limited to 'view-conf.el')
-rw-r--r-- | view-conf.el | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/view-conf.el b/view-conf.el index 9d1ea5f..f41a6d1 100644 --- a/view-conf.el +++ b/view-conf.el @@ -103,6 +103,7 @@ If ARG is '(16), view the battery information." (define-key map (vector ?e) #'eshell) (define-key map (vector ?p) #'durand-chercher-pdf) (define-key map (vector ?o) #'olivetti-mode) + (define-key map (vector ?c) #'calendar) (define-key map (vector ?r) #'choose-recent-file) map) "The keymap that is related to my custom functions about viewing.") @@ -339,13 +340,14 @@ If ARG is non-nil, do the same for Bluetooth." ;;;###autoload (define-minor-mode durand-focus - "Focus mode." nil "Foc" nil + "Focus mode." nil " Foc" nil (cond (durand-focus (setq olivetti-body-width 65) (olivetti-mode 1) (text-scale-increase 2) - (variable-pitch-mode 1)) + (variable-pitch-mode 1) + (cond (current-prefix-arg (view-mode 1)))) ((setq olivetti-body-width 80) (variable-pitch-mode -1) (view-mode -1) |