emacs noob here.
I’m rewriting my init.el file from scratch using use-package macro. In my existing init file I use require to configure MELPA package archive.
(require 'package)
(add-to-list 'package-archives '("MELPA" . "
http://melpa.org/packages/
"))
(package-initialize)
Can I rewrite this using use-package macro?
I don’t use use-package myself, but maybe you could write:
I’d expect it to understand that you are referring to package.el, where package-archives variable is defined.