#100 srecode does not pick up user templates

open
nobody
None
5
2010-08-20
2010-08-20
Anonymous
No

When I insert a template by name (using srecode-insert-template), user template is picked up properly. However, when I use srecode-document-insert-function-comment, it uses the default template for the mode (c++).

Discussion

  • Eric M. Ludlam
    Eric M. Ludlam
    2010-08-27

    The template search order starts first with the application, then to other templates. You will need to specify your local template as belonging to the 'document application with code like this in your .srt file:

    set application "document"