This commit is contained in:
Zelong Kuang
2026-02-28 01:36:39 +11:00
parent 3147312c40
commit 1beff82748
2 changed files with 2 additions and 10 deletions

View File

@@ -16,6 +16,8 @@
:test 'equal)) :test 'equal))
(setq yas-triggers-in-field t) (setq yas-triggers-in-field t)
;; Snippets trigger inside a word
(setq yas-key-syntaxes (list #'yas-longest-key-from-whitespace "w_.()" "w_." "w_" "w")) (setq yas-key-syntaxes (list #'yas-longest-key-from-whitespace "w_.()" "w_." "w_" "w"))
;; Function that tries to autoexpand YaSnippets ;; Function that tries to autoexpand YaSnippets

View File

@@ -1,10 +0,0 @@
# -*- mode: snippet -*-
# contributor: Mads D. Kristensen <madsdk@gmail.com>
# contributor : Bjorn Reese <breese@users.sourceforge.net>
# key: begin
# group: environments
# name: \begin{environment} ... \end{environment}
# --
\begin{${1:$$(yas/choose-value (mapcar 'car (LaTeX-environment-list)))}}
$0
\end{$1}