From: thierry.leurent <thierry.leurent@asgardian.be>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Yatemplate don't expard template
Date: Thu, 7 Jan 2021 23:59:22 +0000 [thread overview]
Message-ID: <c1317e74699b4b5195e37a8c4348e43a@asgardian.be> (raw)
Hello,
I'm trying to configure YaTemplate on my emacs. When I create a new file, the template is loaded but not expanded.
My elisp template :
;;; `(buffer-name)` --- ${1:Summary} -*- lexical-binding: t -*-
;; Copyright (C) `(format-time-string "%Y")` `yatemplate-owner`
;; License: `yatemplate-license`
;;; Commentary:
;;
;; $2
;;
;;; Code:
$0
(provide '`(substring (buffer-name) 0 -3)`)
;;; `(buffer-name)` ends here
If I create a new file named test.el, i see exactly the template file {buffer-name} is not replaced by test.el 😞.
A part of my init.el
(leaf diminish :ensure t)
(leaf yasnippet
:diminish yas-minor-mode
:commands yas-minor-mode
:bind ("s-<tab>" . yas-expand)
:config
(yas-reload-all nil t))
(leaf yatemplate
:ensure t
:config
(setq yatemplate-dir "~/.emacs.d/Asgardian/templates")
(auto-insert-mode t)
(setq auto-insert-query nil)
(setq auto-insert-alist nil)
(yatemplate-fill-alist))
I use.
GNU Emacs 27.1
yasnippet-20200604.246
yatemplate-20200625.1336
Thanks for help
Thierry
reply other threads:[~2021-01-07 23:59 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c1317e74699b4b5195e37a8c4348e43a@asgardian.be \
--to=thierry.leurent@asgardian.be \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).