summaryrefslogtreecommitdiff
path: root/view-conf.el
diff options
context:
space:
mode:
authorJSDurand <mmemmew@gmail.com>2021-03-03 11:12:59 +0800
committerJSDurand <mmemmew@gmail.com>2021-03-03 11:12:59 +0800
commit8e24e00a0382138c344bc36f1f1a539588dfe29e (patch)
treee64aa02afd62ea9cef417fc5c8a62cb25dc2722c /view-conf.el
parent7723d21f10a4107cca960e4ecfe0014e4d3cfbe4 (diff)
TeX, skeleton, and eww.
Configure TeX and add some skeletons, and bind a key to eww.
Diffstat (limited to 'view-conf.el')
-rw-r--r--view-conf.el6
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)