This commit is contained in:
Zelong Kuang
2025-12-14 09:04:11 +11:00
parent 2321eb603b
commit 753ea5ea48
185 changed files with 1608 additions and 18 deletions

15
snippets/latex-mode/hat Normal file
View File

@@ -0,0 +1,15 @@
# -*- mode: snippet -*-
# name: hat
# key: hat
# type: command
# condition: (and (texmathp) 'auto)
# group: math
# --
(let ((argument t))
(condition-case nil
(progn
(backward-sexp)
(kill-sexp)
(delete-char 1))
(error (setq argument 'nil)))
(insert "\\hat{" (if argument (current-kill 0) "") "}"))