How to install melpa in emacs?
Asked Answered
R

1

17

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#

Refusal answered 28/7, 2014 at 8:43 Comment(2)
You should upgrade to Emacs 24.3Glenglencoe
For years, to get around unhelpful sysadmins I was installing emacs from source in my home directory so that I could run the version I wanted ... or run it at all. It's easy; but you need a C compiler.Museum
L
17

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.

Libelee answered 28/7, 2014 at 9:0 Comment(3)
Where do I type that code to add MELPA to the list of repositories?Berfield
That goes in your .emacsLibelee
@Berfield I put it in my ~/.emacs.d/init.elDiarchy

© 2022 - 2024 — McMap. All rights reserved.