coq-club AT inria.fr
Subject: The Coq mailing list
List archive
- From: Clément Pit--Claudel <clement.pit AT gmail.com>
- To: coq-club AT inria.fr
- Subject: Re: [Coq-Club] Switching between Coq installations w/ Proof General
- Date: Tue, 15 Mar 2016 12:09:20 -0400
- Authentication-results: mail2-smtp-roc.national.inria.fr; spf=None smtp.pra=clement.pit AT gmail.com; spf=SoftFail smtp.mailfrom=clement.pit AT gmail.com; spf=None smtp.helo=postmaster AT mout.kundenserver.de
- Ironport-phdr: 9a23:OKOxLBLe4cEd5oCrEdmcpTZWNBhigK39O0sv0rFitYgULvnxwZ3uMQTl6Ol3ixeRBMOAu6IC07Kd7vyocFdDyKjCmUhKSIZLWR4BhJdetC0bK+nBN3fGKuX3ZTcxBsVIWQwt1Xi6NU9IBJS2PAWK8TWM5DIfUi/yKRBybrysXNWC34Lvj6vvp9X6WEZhunmUWftKNhK4rAHc5IE9oLBJDeIP8CbPuWZCYO9MxGlldhq5lhf44dqsrtY4q3wD86Fpy8kVWqLjOq88ULZwDTI8Mmlz6te4mwPESF6k4voZX2MKpSJJH02AxxXzQ5v8tmOuve5w3SScIYvuTKwcVjGr7qMtQxjt3nRUfwUl+X3a35QjxJlQpwis8kRy
A tiny bit shorter, but functionally equivalent:
((coq-mode
(coq-prog-name . "/foo/bar/mycoq/bin/coqtop")))
You can create such files easily with
M-x add-dir-local-variable RET coq-mode RET coq-prog-name RET
"/foo/bar/mycoq/bin/coqtop"
Clément.
On 03/15/2016 11:27 AM, Pierre Courtieu wrote:
> Hi,
>
> Yes the .dir-locals.el is a good solution. Something like this should do
> the trick:
>
> ((nil
> . ((eval
> . (progn
> (setq coq-prog-name "/foo/bar/mycoq/bin/coqtop"))))))
>
>
> Best regards,
> Pierre
>
>
> Le mar. 15 mars 2016 à 16:13, Paul A. Steckler
> <steck AT stecksoft.com
>
> <mailto:steck AT stecksoft.com>>
> a écrit :
>
> I have a couple of Coq installations, and use Proof General.
>
> What's the easiest way to have Proof General switch between those
> installations?
>
> I'd like it so that if I open a .v file in a particular directory
> tree, it uses one of the
> installations, otherwise it uses the other.
>
> It looks like .dir-locals.el would be involved, but I haven't found
> the right incantation.
>
> -- Paul
>
Attachment:
signature.asc
Description: OpenPGP digital signature
- [Coq-Club] Switching between Coq installations w/ Proof General, Paul A. Steckler, 03/15/2016
- Re: [Coq-Club] Switching between Coq installations w/ Proof General, Pierre Courtieu, 03/15/2016
- Re: [Coq-Club] Switching between Coq installations w/ Proof General, Clément Pit--Claudel, 03/15/2016
- Re: [Coq-Club] Switching between Coq installations w/ Proof General, Paul A. Steckler, 03/15/2016
- Re: [Coq-Club] Switching between Coq installations w/ Proof General, Paul A. Steckler, 03/15/2016
- Re: [Coq-Club] Switching between Coq installations w/ Proof General, Pierre Courtieu, 03/15/2016
Archive powered by MHonArc 2.6.18.