Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to install melpa in emacs?

I need to install MELPA into my emacs 23.3 version. I have googled for the ways to install it but couldn't find/understand any of them.

Can anyone please help me with installing MELPA. I am using ubuntu 12.04

I need MELPA to install OmniSharp which will help for autocompletion in C#

like image 759
Pratik Singhal Avatar asked Jul 28 '14 08:07

Pratik Singhal


People also ask

How do I add melpa to Emacs?

For 23.3 you first need to get a compatible version of package. el (there is one here). From the EmacsWiki. To then install OmniSharp, first refresh the package archive with M-x package-refresh-contents , then you can use M-x package-install RET omnisharp .

How do I install a package with melpa?

el package (available in MELPA) that will allow you to enable only certain packages or exclude certain packages. You can install the package manually by pasting this into your *scratch* buffer and evaluating it.

How do I add plugins to Emacs?

Type M-x list-packages to open the package list. Press 'i' to mark for installation, 'u' to unmark, and 'x' to perform the installation. Press 'RET' to read more about installing and using each package.


1 Answers

MELPA is actually just a repository of emacs packages. The emacs package manager has been included in emacs since version 24. For 23.3 you first need to get a compatible version of package.el (there is one here).

After putting package.el in your load-path, you then need to add MELPA to the list of repositories:

(require 'package)
;; Any add to list for package-archives (to add marmalade or melpa) goes here
(add-to-list 'package-archives 
    '("MELPA" .
      "http://melpa.org/packages/"))
(package-initialize)

From the EmacsWiki.

To then install OmniSharp, first refresh the package archive with M-x package-refresh-contents, then you can use M-x package-install RET omnisharp.

like image 200
Yossarian Avatar answered Oct 01 '22 16:10

Yossarian