caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matthieu Dubuget <matthieu.dubuget@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml autocomplete support in Emacs
Date: Wed, 2 Dec 2015 14:04:26 +0100	[thread overview]
Message-ID: <565EEC5A.6050205@gmail.com> (raw)
In-Reply-To: <565EDE0A.6010301@gmail.com>

Hello,

in order for autocompletion to work in emacs, I had to switch to company.

See this merlin's wiki page for details:
https://github.com/the-lambda-church/merlin/wiki/emacs-from-scratch#company-mode

I had to install the company from emacs using `M-x list-packages`.

The `.emacs` file additions were:

```lisp
;; Trying company instead
(require 'company)

; Make company aware of merlin
(add-to-list 'company-backends 'merlin-company-backend)
; Enable company on merlin managed buffers
(add-hook 'merlin-mode-hook 'company-mode)
```

That said, I just read the paragraph above in merlin's wiki page
(https://github.com/the-lambda-church/merlin/wiki/emacs-from-scratch#auto-complete),
but I can't remember if I tried this or not before switching to company:
did you add the following to your emacs configuration file?

```lisp
(setq merlin-ac-setup 'easy)
```

Salutations


-- 
Matthieu Dubuget
Guide d’autodéfense numérique : http://guide.boum.org

  reply	other threads:[~2015-12-02 13:12 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-02 11:50 Matej Kosik
2015-12-02 11:52 ` Lukasz Stafiniak
2015-12-02 12:03   ` Matej Kosik
2015-12-02 13:04     ` Matthieu Dubuget [this message]
2015-12-02 14:15       ` Matej Kosik
2015-12-02 14:19         ` Thomas Refis
2015-12-02 17:42         ` Alan Schmitt
2015-12-02 19:10           ` Matej Kosik
2015-12-02 13:13     ` Francois Berenger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=565EEC5A.6050205@gmail.com \
    --to=matthieu.dubuget@gmail.com \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).