New in Emacs 25.1: Easily install multifile package from a directory20 Jan 2015, by Artur Malabarba.
New in 25.1 post series
- New in Emacs 25.1: Query-replace history is enhanced.
- New in Emacs 25.1: Better Rectangles
- New on Elpa and in Emacs 25.1: let-alist
- New in Emacs 25.1: Easily install multifile package from a directory
- New in Emacs 25.1: comment-line
- New on Elpa and in Emacs 25.1: seq.el
- New in Emacs 25.1: Have prettify-symbols-mode reveal the symbol at point
- New in Emacs 25.1: Round quotes in Help buffers
- New in Emacs 25.1: Easily search for non-ASCII characters
- New in Emacs 25.1: EWW improvements
- New in Emacs 25.1: map.el library
- New in Emacs 25.1: More flow control macros
When developing a package,
package-install-from-buffer is a very useful
command. It installs the current buffer as an Elpa package, so you can test
installation, byte-compilation, autoloading, and activation, all in one fell
swoop. If your package has multiple files, however, it gets a little more
Earlier this month, I asked on Emacs.SE whether there was a simple way to
manually install a multifile package. As discussed in Phils' answer, you need to
-pkg.el file, tar the package, and then invoke a command on the tar
file. That's two steps too many for me, so a push to
master was in order.
As of today, Emacs 25.1 has a new feature. From the
package-install-filework on directories. This follows the same rules as installing from a
.tarfile, except the
-pkg.elfile is optional.
There are no new commands to remember. Just issue
from a dired buffer, or invoke
package-install-file and give a directory.
Whichever package is contained in that directory will be read and installed, be
it single or multifile, no taring or
-pkg.el file necessary.