Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thoughts #2

Open
nicferrier opened this issue Jul 22, 2012 · 1 comment
Open

thoughts #2

nicferrier opened this issue Jul 22, 2012 · 1 comment

Comments

@nicferrier
Copy link
Contributor

We talked on #emacs

  • would be good to ask for variables in the order in which they are defined
  • would be good to have variables that could have defaults, particularly lisp variable references
  • would be good to be able to apply the template interactively but supplying a default template name

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
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants