diff options
author | JSDurand <mmemmew@gmail.com> | 2021-03-26 00:10:37 +0800 |
---|---|---|
committer | JSDurand <mmemmew@gmail.com> | 2021-03-26 00:10:37 +0800 |
commit | 42311ef8f82ca1eb4f60d07de84b96a572eecfa0 (patch) | |
tree | d371889d53a16f4c6fc859e1200386128d672bc8 | |
parent | 5421e7f8258fcecbbf943a937bf07d4e06768a0b (diff) |
Bind novel and require autoinsert.
Two small edits:
* skeleton-conf.el (autoinsert): Make this useful function available
* by default.
* view-conf.el (durand-view-map): Bind novel to a key.
-rw-r--r-- | skeleton-conf.el | 2 | ||||
-rw-r--r-- | view-conf.el | 1 |
2 files changed, 3 insertions, 0 deletions
diff --git a/skeleton-conf.el b/skeleton-conf.el index 329cb8d..eaffe17 100644 --- a/skeleton-conf.el +++ b/skeleton-conf.el @@ -112,6 +112,8 @@ > _ "\n\\end{document}") +(require 'autoinsert) + (cond ((assoc 'latex-mode auto-insert-alist) (setcdr (assoc 'latex-mode auto-insert-alist) #'insert-tex)) diff --git a/view-conf.el b/view-conf.el index f41a6d1..f5dcda9 100644 --- a/view-conf.el +++ b/view-conf.el @@ -105,6 +105,7 @@ If ARG is '(16), view the battery information." (define-key map (vector ?o) #'olivetti-mode) (define-key map (vector ?c) #'calendar) (define-key map (vector ?r) #'choose-recent-file) + (define-key map (vector ?n) #'novel) map) "The keymap that is related to my custom functions about viewing.") |