[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Yatemplate don't expard template
From: |
thierry . leurent |
Subject: |
Yatemplate don't expard template |
Date: |
Thu, 7 Jan 2021 23:59:22 +0000 |
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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Yatemplate don't expard template,
thierry . leurent <=