Is it possible to automatically add use-package statement into .emacs file after installation through list-packages?

I think it should be done through hooks, but maybe already exist solution from the community.

  • Do you mean like an empty (use-package FOO) statement? What for? – Stefan Mar 15 '18 at 0:10
  • Please try to clarify what you are asking. – Drew Mar 15 '18 at 1:33
  • I want to automatically add use-package statement into ini file, when I'm installing package through list-packages command to save time if I don't want add extra config into installed package. – Alexander Sapelkin Mar 15 '18 at 3:25
  • I still don't know what you mean by "add use-package statement", nor why you'd find it useful. – Stefan Mar 15 '18 at 13:48

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.