Commit 64fd1a5a authored by Artur Malabarba's avatar Artur Malabarba

(package-install-file): Install packages from directory.

parent bc2f8d06
......@@ -6,6 +6,7 @@
(package-dir-info): New function. Find package information for a
directory. The return result is a `package-desc'.
(package-install-from-buffer): Install packages from dired buffer.
(package-install-file): Install packages from directory.
2015-01-16 Jorgen Schaefer <>
......@@ -1368,8 +1368,12 @@ Downloads and installs required packages as needed."
The file can either be a tar file or an Emacs Lisp file."
(interactive "fPackage file name: ")
(insert-file-contents-literally file)
(when (string-match "\\.tar\\'" file) (tar-mode))
(if (file-directory-p file)
(setq default-directory file)
(insert-file-contents-literally file)
(when (string-match "\\.tar\\'" file) (tar-mode)))
(defun package-delete (pkg-desc)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment