16

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#

Yossarian
  • 5,226
  • 1
  • 37
  • 59
Pratik Singhal
  • 6,283
  • 10
  • 55
  • 97
  • 4
    You should upgrade to Emacs 24.3 – phils Jul 28 '14 at 09:07
  • 1
    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. – Bret Weinraub Dec 06 '16 at 18:54

1 Answers1

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.

Dr Sheldon
  • 176
  • 1
  • 14
Yossarian
  • 5,226
  • 1
  • 37
  • 59