Skip to main content

Questions tagged [auto-insert]

Question about the usage of package autoinsert

3 questions with no upvoted or accepted answers
Filter by
Sorted by
Tagged with
1 vote
1 answer
438 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-...
147pm's user avatar
  • 2,969
1 vote
0 answers
48 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-...
Robin Green's user avatar
1 vote
0 answers
92 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 ...
user3593232's user avatar