I'm new to Emacs. I'd like to install a package, but doing M-x package-install
says there is no such command.
Trying to look which packages are installed with M-x list-packages
does not work either. GNU Emacs manual does not say much about it (or I looked in a wrong place), and I can't quite come up with meaningful keywords for search due to my limited Emacs knowledge.
Thanks phils and shyamupa for setting me on track. Indeed, I am using emacs 23 ("M-x version" to check).
I used instruction from here to install packaging system. I had to copy the following in scratch:
and then
M-x eval-buffer
Then,
M-x package-list-packages
works.UPDATE:
It turns out I was looking for a package in MELPA, and the above procedure sets you up for ELPA only. The content of my .emacs file after installation was following:
To enable MELPA load I had to replace the contents of package.el with this and change .emacs as follows (inspired by this SO question):
This did the trick and I got a huge list of packages from MELPA. Hope this will save someone time in future.