Questions tagged [auto-insert]

Question about the usage of package autoinsert

4 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1
vote
0answers
221 views

Using auto-insert and yasnippet to insert variables into template

I've been reading this and this, trying to figure out how to have an org-mode in-buffer settings template such as this: # # -*- mode: org -*- # # -*- coding: utf-8 -*- #+TITLE: $1 #+AUTHOR: `(user-...
1
vote
0answers
41 views

Both set mode and insert in auto-insert-alist lambda

I have the following as a member of auto-insert-alist: (("/home/robin/.local/bin/.*[^/]\\'" . "Shell-Script mode magic number") lambda nil (if (eq major-mode (default-value 'major-...
1
vote
0answers
80 views

Autoinsert inserts template twice

I want to use autoinsert with C and headers, the code from http://www.emacswiki.org/emacs/AutoInsertMode works well so I made my own template for header in an elisp funtion, but the insertion repeat ...
0
votes
0answers
23 views

Yasnippet & AutoInsert cutting off template when inserting sub-snippet

So following some examples online, I've got autoinsert and yasnippet set up so that the template gets handled like a snippet. I'm trying to sort out how to include other templates but I'm running into ...