Difference between revisions of "Installing emacs package manager"
From Notes_Wiki
(Created page with "=Installing emacs package manager= Instructions of installing emacs package manager using short-emacs code are available at http://tromey.com/elpa/install.html Steps are...") |
m |
||
Line 1: | Line 1: | ||
<yambe:breadcrumb>Emacs</yambe:breadcrumb> | |||
=Installing emacs package manager= | =Installing emacs package manager= | ||
Instructions of installing emacs package manager using short-emacs code are available at http://tromey.com/elpa/install.html | Instructions of installing emacs package manager using short-emacs code are available at http://tromey.com/elpa/install.html |
Revision as of 01:23, 20 December 2012
<yambe:breadcrumb>Emacs</yambe:breadcrumb>
Installing emacs package manager
Instructions of installing emacs package manager using short-emacs code are available at http://tromey.com/elpa/install.html
Steps are:
- If you do not have direct connection to internet then first use "export http_proxy='<proxy>:<port>'" to specify proxy server before starting emacs from same terminal.
- Copy/paste following code in scratch and use Ctrl+j when cursor is at last closing parenthesis to execute code
- (let ((buffer (url-retrieve-synchronously
- "http://tromey.com/elpa/package-install.el")))
- (save-excursion
- (set-buffer buffer)
- (goto-char (point-min))
- (re-search-forward "^$" nil 'move)
- (eval-region (point) (point-max))
- (kill-buffer (current-buffer))))
- Use 'M-x' (alt-x) followed by command 'package-list-packages' to get list of all packages that can be installed via package manager