Skip to Content.
Sympa Menu

coq-club - Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)

coq-club AT inria.fr

Subject: The Coq mailing list

List archive

Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)


Chronological Thread 
  • From: Clément Pit--Claudel <clement.pit AT gmail.com>
  • To: "Lucian M. Patcas" <lucian.patcas AT gmail.com>, coq-club <coq-club AT inria.fr>
  • Subject: Re: [Coq-Club] Tricks to make Unicode input easier and proof scripts more readable (was Re: Lean Theorem Prover)
  • Date: Thu, 3 Mar 2016 23:18:28 -0700
  • 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:rQND3RdttSsvIZb39gunHVBmlGMj4u6mDksu8pMizoh2WeGdxc+4YB7h7PlgxGXEQZ/co6odzbGG7Oa/BCdRvt6oizMrTt9lb1c9k8IYnggtUoauKHbQC7rUVRE8B9lIT1R//nu2YgB/Ecf6YEDO8DXptWZBUiv2OQc9HOnpAIma153xjLDtvcKOKFQXzBOGIppMbzyO5T3LsccXhYYwYo0Q8TDu5kVyRuJN2GlzLkiSlRuvru25/Zpk7jgC86l5r50IeezAcq85Vb1VCig9eyBwvZWz9EqLcQzarF8BWWQflFJtRUD95Q3xV4y7+n/+q+F80S/cJcTqRrkvcTun5qZvDhTvjXFDfzU+6STcjtF6xPZQpwvkrBhiyabVZpuUPbxwZPWOU8kdQD9qWkdUWipdNbu9c85KJO4IIOpVq8GprF8DqBa4GU+0Bf/HxTpBh3uw1qo/hbdyWTra1RAtSopd+E/fq8/4YeJLCbi4

On 03/03/2016 09:59 PM, Lucian M. Patcas wrote:
> Hi Clément,
Hi Lucian,

> 1. Is it possible to disable subscripting? I have many identifiers of
> the form c_n, where c is a string and n a number that I don't want to
> be displayed as a subscript.

Sure; `M-x company-coq-toggle-feature RET smart-subscripts RET` will disable
them temporarily. To make that change permanent, use `M-x customize-variable
RET company-coq-disabled-features RET`

> 2. Can comments be prettified?

They are in Emacs 25, which is currently in pretest. In 24, the
prettification code isn't flexible enough.

> 3. Is it possible to generate prettified coqdoc documents?

Do you mean prettifying symbols inside of code blocks in comments ([…])? If
so, yes, but only in Emacs 25.
Or did you have something else in mind?

> 4. I don't want Prop, bool etc to be prettified. What file do I have
> to edit to remove this behaviour?

No need to edit a file :) It should be enough to customize the variable
`company-coq-prettify-symbols-alist`.

Cheers,
Clément.

> On 3 March 2016 at 11:42, Clément Pit--Claudel
> <clement.pit AT gmail.com
> <mailto:clement.pit AT gmail.com>>
> wrote:
>
> I think prettification offers an interesting middle ground (see an
> example at
> https://github.com/cpitclaudel/company-coq/#prettification-of-operators-types-and-subscripts;
> these two screenshots show the same Emacs buffer, with and without
> the prettification layer). This should allow both kinds of SW
> engineers to work on the same files.
>
> Clément.
>
>

Attachment: signature.asc
Description: OpenPGP digital signature




Archive powered by MHonArc 2.6.18.

Top of Page