mineo / yatemplate

File templates for Emacs with YASnippet
https://github.com/mineo/yatemplate
GNU General Public License v3.0
70 stars 11 forks source link

not possible to create templates in windows #9

Closed fommil closed 8 years ago

fommil commented 8 years ago

It is not possible AFAICT to create files with names such as 50:*.el on Windows 7.

Can you please support characters that are supported? Or allow the regex patterns to be defined by variables that refer to simple named files.

fommil commented 8 years ago

http://stackoverflow.com/questions/1976007/

fommil commented 8 years ago

is it possible to perhaps use the standard snippets format and put the regex pattern in the name field?

fommil commented 8 years ago

workaround

(let ((dir (concat user-emacs-directory "templates/")))
    (push `("\\.scala\\'" . [,(concat dir "scala") yatemplate-expand-yas-buffer]) auto-insert-alist)
    (push `("\\.el\\'" . [,(concat dir "emacs-lisp") yatemplate-expand-yas-buffer]) auto-insert-alist))
mineo commented 8 years ago

I'm sorry, but it's very unlikely that I'll change that part of the process. I simply do not care enough about Windows to invest time into figuring out a solution for it.