Skip to content

Commit

Permalink
fix: latex templates now work with auctex (Crandel#55)
Browse files Browse the repository at this point in the history
Thank you for contributing
  • Loading branch information
MArpogaus authored and alexforsale committed Aug 6, 2024
1 parent d196ce1 commit 6762808
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tempel-collection.el
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
(while (and mode (not (memq mode tempel-collection--loaded)))
(push mode tempel-collection--loaded)
(let ((file
(or (tempel-collection--mode-file (string-remove-suffix "-mode" (symbol-name mode)))
(or (tempel-collection--mode-file (downcase (string-remove-suffix "-mode" (symbol-name mode))))
(tempel-collection--mode-file (alist-get mode tempel-collection--aliases)))))
(when file
(setq tempel-collection--templates
Expand Down
2 changes: 1 addition & 1 deletion templates/latex.eld
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
latex-mode
latex-mode LaTeX-mode

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

0 comments on commit 6762808

Please sign in to comment.