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#

2
  • 4
    You should upgrade to Emacs 24.3
    – phils
    Commented Jul 28, 2014 at 9: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. Commented Dec 6, 2016 at 18:54

1 Answer 1

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.

3
  • 1
    Where do I type that code to add MELPA to the list of repositories?
    – Sammi3
    Commented Dec 16, 2019 at 22:12
  • That goes in your .emacs
    – Yossarian
    Commented Dec 16, 2019 at 22:15
  • @Sammi3 I put it in my ~/.emacs.d/init.el Commented Mar 23, 2021 at 1:57

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.