Skip to content

Commit

Permalink
actually avoid extra directives
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreaCrotti committed Oct 14, 2024
1 parent fd9a649 commit 23bcbcd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion snippets/dix-mode/e-in-mono-section
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# key: <e
# condition: (dix-enclosing-is-mono-section)
# binding: direct-keybinding
#TODO: remove suffix from <i> after leaving <par>
# TODO, remove suffix from <i> after leaving <par>
# --
<e lm="${1:`(dix-yas-prev-lemma)`}"> <i>${1:$(dix-yas-lm-to-i)}</i> <par n="${3:$$(dix-yas-choose-pdname)}"/></e>
$0
4 changes: 2 additions & 2 deletions snippets/dix-mode/s
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# key: <s
# binding: direct-keybinding
# condition: (progn (backward-char 2) (member (dix-enclosing-elt 'noerror) '("l" "r" "i" "g")))
# requires (eval-after-load 'yasnippet '(add-to-list 'yas-key-syntaxes 'dix-yas-skip-backwards-to-key))
# so that you can expand it after regular letter chars
# --
# Note: requires (eval-after-load 'yasnippet '(add-to-list 'yas-key-syntaxes 'dix-yas-skip-backwards-to-key))
#so that you can expand it after regular letter chars
<s n="$1"/>$0
2 changes: 1 addition & 1 deletion snippets/python-mode/function_docstring
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# name: function_docstring
# key: fd
# group: definitions
# Use minimum indentation, because Emacs 25+ doesn't dedent docstrings.
# --
# NOTE: Use minimum indentation, because Emacs 25+ doesn't dedent docstrings.
def ${1:name}($2):
\"\"\"$3
${2:$(python-args-to-docstring)}
Expand Down

0 comments on commit 23bcbcd

Please sign in to comment.