[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] [RFC] Moving "manual.org" into core
From: |
Nicolas Goaziou |
Subject: |
Re: [O] [RFC] Moving "manual.org" into core |
Date: |
Wed, 24 Jan 2018 12:28:54 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux) |
Hello,
Yasushi SHOJI <address@hidden> writes:
> How about using org-lint or some other formatter on git commit hook?
> after go lang introduced gofmt, many projects adapted the method to
> keep the code constant.
Org Lint is not a formatter. It detects common mistakes or hypothetical
mistakes in an Org document, e.g., invalid links. In particular, it
doesn't detect stylistic issues like those discussed above.
It doesn't mean we couldn't run it automatically. However, it also emits
warnings (see `trust' property) on perfectly valid syntax.
As a side note, writing an Org formatter is trivial:
(when (yes-or-no-p "Really format current buffer ? ")
(let ((document (org-element-interpret-data (org-element-parse-buffer))))
(erase-buffer)
(insert document)
(goto-char (point-min))))
Regards,
--
Nicolas Goaziou
- Re: [O] [RFC] Moving "manual.org" into core, (continued)
- Re: [O] [RFC] Moving "manual.org" into core, Kaushal Modi, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Bastien Guerry, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Bastien Guerry, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Nicolas Goaziou, 2018/01/22
- [O] org-adapt-indentation 'content (was Re: [RFC] Moving "manual.org" into core), Christian Moe, 2018/01/23
- Re: [O] [RFC] Moving "manual.org" into core, Achim Gratz, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Thomas S. Dye, 2018/01/23
Re: [O] [RFC] Moving "manual.org" into core, Rasmus, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Kaushal Modi, 2018/01/22
- Re: [O] [RFC] Moving "manual.org" into core, Yasushi SHOJI, 2018/01/24
- Re: [O] [RFC] Moving "manual.org" into core,
Nicolas Goaziou <=
- Re: [O] [RFC] Moving "manual.org" into core, Yasushi SHOJI, 2018/01/26
- Re: [O] [RFC] Moving "manual.org" into core, Nicolas Goaziou, 2018/01/26
- Re: [O] [RFC] Moving "manual.org" into core, Yasushi SHOJI, 2018/01/27
- Re: [O] [RFC] Moving "manual.org" into core, Nicolas Goaziou, 2018/01/28
- Re: [O] [RFC] Moving "manual.org" into core, Yasushi SHOJI, 2018/01/28
- Re: [O] [RFC] Moving "manual.org" into core, Nicolas Goaziou, 2018/01/29
Re: [O] [RFC] Moving "manual.org" into core, Thomas S. Dye, 2018/01/22
Re: [O] [RFC] Moving "manual.org" into core, Christian Moe, 2018/01/23
Re: [O] [RFC] Moving "manual.org" into core, Samuel Wales, 2018/01/23