summaryrefslogtreecommitdiff
path: root/install-package.el
diff options
context:
space:
mode:
Diffstat (limited to 'install-package.el')
-rw-r--r--install-package.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/install-package.el b/install-package.el
new file mode 100644
index 0000000..5b0474e
--- /dev/null
+++ b/install-package.el
@@ -0,0 +1,7 @@
+(defun install-package ()
+ (interactive)
+ (let ((filename (apply 'concat command-line-args-left)))
+ (message (concat "Installing package " filename))
+ (package-admin-add-binary-package filename)
+ (set-buffer "*Package Output*")
+ (message (buffer-substring (point-min) (point-max)))))