0

mmm-mode is available on Melpa.

Yet both

`M-x` `list-packages` `C-s` `mmm-mode`

and

`M-x` `package-install` `mmm-mode`

suggest that it's not.

How do I install mmm-mode (through MELPA)?

  • mmm-mode is not in melpa anymore, it's actually in ELPA now. – Tyler Apr 6 '18 at 20:36
  • voted to close as unclear, as the question is outdated (mmm-mode isn't in melpa anymore), and the description provided in comments suggests the actual problem is unrelated to mmm-mode and melpa. – Tyler Apr 6 '18 at 20:39
1

You have to add the melpa repository to your package archives.

In your .emacs init file you have to add the following lines:

enter image description here

Then, when listing the available packages, you will find mmm-mode:

enter image description here

  • I had just one (stable.melpa.org/packages). Adding the two you suggest does not help. I'm using Emacs 25 (and so the third you suggest does not apply). – Calaf Nov 7 '17 at 16:49
  • Hmm, that seems strange. Those are the only repositories I have. If you see in the second image, my mmm-mode comes from MELPA, so adding the source melpa.org/packages should allow you to get it. Make sure to add the package and then run M-x package-list-packages. Which emacs version are you using? – Martín Nov 7 '17 at 19:04
  • If I type /Applications/Emacs.app/Contents/MacOS/Emacs-x86_64-10_9 in the Terminal, with a .emacs containing (require 'package) (add-to-list 'package-archives '("MELPA Stable" . "stable.melpa.org/packages/") t) (add-to-list 'package-archives '("MELPA" . "melpa.org/packages/") t) (add-to-list 'package-archives '("org" . "orgmode.org/elpa/") t) (package-initialize) , and then call package-list-packages, Emacs crashes. I'm running GNU Emacs 25.3.1 on High Sierra. I guess it's more serious than just a lack of mmm-mode. – Calaf Nov 8 '17 at 2:12
  • It's not specific to 25.3.1. Emacs 25.2.1 also crashes in that exact setup. Not sure if it happens on Sierra or El Capitan. – Calaf Nov 8 '17 at 2:15
  • The .emacs init file should be in your home directory, for instance, in my case it is in /Users/martin/. That is the file that gets loaded when emacs starts. The other one I think it is a system example file. You can verify which init file gets loaded with C-h v user-init-file [RET] – Martín Nov 8 '17 at 13:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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