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
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Installing emacs package manager=
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Text editors]] > [[Emacs]] > [[Installing emacs package manager]]


Note that a normal elpa package manager which can be accessed using '<tt>list-packages</tt>' without going through below installation is also available at least in emacs 24.x onwards.  Only if that is not sufficient below steps can be followed.


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   
Line 18: Line 19:
#:</pre>
#:</pre>
# Use '<tt>M-x</tt>' (alt-x) followed by command '<tt>package-list-packages</tt>' to get list of all packages that can be installed via package manager
# Use '<tt>M-x</tt>' (alt-x) followed by command '<tt>package-list-packages</tt>' to get list of all packages that can be installed via package manager
# Use '<tt>i</tt>' to mark package for installation
# Use '<tt>x</tt>' to install selected packages
[[Main Page|Home]] > [[CentOS]] > [[CentOS 6.x]] > [[Text editors]] > [[Emacs]] > [[Installing emacs package manager]]

Latest revision as of 15:53, 24 August 2022

Home > CentOS > CentOS 6.x > Text editors > Emacs > Installing emacs package manager

Note that a normal elpa package manager which can be accessed using 'list-packages' without going through below installation is also available at least in emacs 24.x onwards. Only if that is not sufficient below steps can be followed.

Instructions of installing emacs package manager using short-emacs code are available at http://tromey.com/elpa/install.html

Steps are:

  1. 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.
  2. 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))))
  3. Use 'M-x' (alt-x) followed by command 'package-list-packages' to get list of all packages that can be installed via package manager
  4. Use 'i' to mark package for installation
  5. Use 'x' to install selected packages


Home > CentOS > CentOS 6.x > Text editors > Emacs > Installing emacs package manager