Initial commit
This commit is contained in:
15
snippets/latex-mode/hat
Normal file
15
snippets/latex-mode/hat
Normal 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) "") "}"))
|
||||
Reference in New Issue
Block a user