diff --git a/faq.html b/faq.html index bd4f9c6..c2e003a 100644 --- a/faq.html +++ b/faq.html @@ -3,21 +3,28 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + Frequently Asked Questions - - + @@ -92,7 +184,7 @@ @licstart The following is the entire license notice for the JavaScript code in this tag. -Copyright (C) 2012-2013 Free Software Foundation, Inc. +Copyright (C) 2012-2018 Free Software Foundation, Inc. The JavaScript code in this tag is free software: you can redistribute it and/or modify it under the terms of the GNU @@ -141,14 +233,14 @@ for the JavaScript code in this tag.
  • Overview
  • Intro and Tutorial -
  • Snippet - @@ -159,18 +251,24 @@ for the JavaScript code in this tag.

    Table of Contents

    + -
    -

    Why is there an extra newline?

    -
    +
    +

    Why is there an extra newline?

    +

    If there is a newline at the end of a snippet definition file, YASnippet will add a newline when expanding that snippet. When editing @@ -186,16 +284,15 @@ final newline automatically.

    -
    -

    Why doesn't TAB navigation work with flyspell

    -
    +
    +

    Why doesn't TAB navigation work with flyspell

    +

    A workaround is to inhibit flyspell overlays while the snippet is active:

    -
    (add-hook 'flyspell-incorrect-hook
               #'(lambda (dummy1 dummy2 dymmy3)
                   (and yas-active-field-overlay
    @@ -214,16 +311,15 @@ solve this problem, drop a line in the
     
    -
    -

    How to I use alternative keys, i.e. not TAB?

    -
    +
    +

    How do I use alternative keys, i.e. not TAB?

    +

    Edit the keymaps yas-minor-mode-map and yas-keymap as you would any other keymap:

    -
    (define-key yas-minor-mode-map (kbd "<tab>") nil)
     (define-key yas-minor-mode-map (kbd "TAB") nil)
     (define-key yas-minor-mode-map (kbd "<the new key>") yas-maybe-expand)
    @@ -240,16 +336,15 @@ Edit the keymaps yas-m
     
    -
    -

    How do I turn off the minor mode where in some buffers?

    -
    +
    +

    How do I turn off the minor mode where in some buffers?

    +

    The best way, since version 0.6.1c, is to set the default value of the variable yas-dont-activate to a lambda function like so:

    -
    (set-default 'yas-dont-activate
                  #'(lambda ()
                      (and yas-root-directory
    @@ -265,15 +360,14 @@ but only once you have setup your yas-root-directory.
     
    -
    -

    How do I define an abbrev key containing characters not supported by the filesystem?

    -
    +
    +

    How do I define an abbrev key containing characters not supported by the filesystem?

    +
    • Note: This question applies if you're still defining snippets whose key is the filename. This is behavior still provided by version 0.6 for backward compatibilty, but is somewhat -deprecated… -
    • +deprecated…

    @@ -290,7 +384,6 @@ directive:

    -
    # key: <
     # name: <...></...>
     # --
    @@ -301,7 +394,7 @@ directive:
     
    -

    Generated by Emacs 25.2.50.5 (Org mode 8.2.10) from 0.12.2 (2017-08-29 02:08:58)

    +

    Generated by Emacs 26.1 (Org mode 9.1.9) from 0.13.0 (2018-05-13 16:12:51)

    Validate

    diff --git a/index.html b/index.html index e24b774..544f023 100644 --- a/index.html +++ b/index.html @@ -3,21 +3,28 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + Yet another snippet extension - - + @@ -92,7 +184,7 @@ @licstart The following is the entire license notice for the JavaScript code in this tag. -Copyright (C) 2012-2013 Free Software Foundation, Inc. +Copyright (C) 2012-2018 Free Software Foundation, Inc. The JavaScript code in this tag is free software: you can redistribute it and/or modify it under the terms of the GNU @@ -138,11 +230,11 @@ for the JavaScript code in this tag.
    -

    Generated by Emacs 25.2.50.5 (Org mode 8.2.10) from 0.12.2 (2017-08-29 02:08:58)

    +

    Generated by Emacs 26.1 (Org mode 9.1.9) from 0.13.0 (2018-05-13 16:12:51)

    Validate

    diff --git a/snippet-development.html b/snippet-development.html index cb43e3c..dae3e10 100644 --- a/snippet-development.html +++ b/snippet-development.html @@ -3,21 +3,28 @@ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> + + Writing snippets - - + @@ -92,7 +184,7 @@ @licstart The following is the entire license notice for the JavaScript code in this tag. -Copyright (C) 2012-2013 Free Software Foundation, Inc. +Copyright (C) 2012-2018 Free Software Foundation, Inc. The JavaScript code in this tag is free software: you can redistribute it and/or modify it under the terms of the GNU @@ -141,11 +233,11 @@ for the JavaScript code in this tag.
  • Overview
  • Intro and Tutorial -
  • Snippet -