Skip to content

Commit cf25943

Browse files
authored
fix: latex templates now work with auctex (#55)
Thank you for contributing
1 parent e87b1fe commit cf25943

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

tempel-collection.el

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
(while (and mode (not (memq mode tempel-collection--loaded)))
8888
(push mode tempel-collection--loaded)
8989
(let ((file
90-
(or (tempel-collection--mode-file (string-remove-suffix "-mode" (symbol-name mode)))
90+
(or (tempel-collection--mode-file (downcase (string-remove-suffix "-mode" (symbol-name mode))))
9191
(tempel-collection--mode-file (alist-get mode tempel-collection--aliases)))))
9292
(when file
9393
(setq tempel-collection--templates

templates/latex.eld

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
latex-mode
1+
latex-mode LaTeX-mode
22

33
;; taken from https://github.com/minad/tempel/blob/5b09f612cfd805dba5e90bf06580583cab045499/README.org#template-file-format
44
(abstract "\\begin{abstract}\n" r> n> "\\end{abstract}")

0 commit comments

Comments
 (0)