yonkeltron / terrible-template

terrible-templates which don't suck!
2 stars 2 forks source link

thoughts #2

Open nicferrier opened 12 years ago

nicferrier commented 12 years ago

We talked on #emacs

this last one needs some explanation:

(defun elisp-template-thing ()
  (call-interactively 'terrible-template-insert))

(add-hook 'emacs-lisp-mode-hook 'elisp-template-thing)

this is great but I'd always want to use the same template.

It would be ideal to say:

(defun elisp-template-thing ()
  (let ((terrible-template-name "elisp-template"))
     (call-interactively 'terrible-template-insert)))

(add-hook 'emacs-lisp-mode-hook 'elisp-template-thing)

and then the template would default to using "elisp-template".

These changes would make it very usable.

yonkeltron commented 12 years ago

I have pushed the fix to prompt the user for variables in order. I will consider the default idea in question, I do not know how I might want to support the default template stuff you also suggested.