unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Yatemplate don't expard template
@ 2021-01-07 23:59 thierry.leurent
  0 siblings, 0 replies; only message in thread
From: thierry.leurent @ 2021-01-07 23:59 UTC (permalink / raw)
  To: help-gnu-emacs@gnu.org

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


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2021-01-07 23:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-07 23:59 Yatemplate don't expard template thierry.leurent

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).