caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Matej Kosik <5764c029b688c1c0d24a2e97cd764f@gmail.com>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Ocaml autocomplete support in Emacs
Date: Wed, 02 Dec 2015 15:15:25 +0100	[thread overview]
Message-ID: <565EFCFD.2050300@gmail.com> (raw)
In-Reply-To: <565EEC5A.6050205@gmail.com>

Hi Matthieu

On 12/02/2015 02:04 PM, Matthieu Dubuget wrote:
> 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)
> ```

Thank you!
This helped.

<for_the_record>
   The only piece missing was that I needed to first do:

	(push "~/.emacs.d/elpa/company-0.8.12" load-path)     ; directory containing company.el

   before those other commands, otherwise

	(require 'company)

   would fail.
</for_the_record>

> 
> 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)
> ```

In my case, the above command had no effect I was able to perceive
altough I see that it is mentioned here:

  https://github.com/the-lambda-church/merlin/wiki/emacs-from-scratch#auto-complete

Is that page up to date?
There are at least two things that do not make sense:

(1) It mentions "merlin-try-completion" which does not exist, does it?

(2) It mentions the C-c <tab> shortcut but when I try it, I always get a message:

      Can't find completion for ...

    as if this was not supposed to work but it is still suggested by the page.

Those details I found confusing.

  reply	other threads:[~2015-12-02 14:15 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
2015-12-02 14:15       ` Matej Kosik [this message]
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=565EFCFD.2050300@gmail.com \
    --to=5764c029b688c1c0d24a2e97cd764f@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).