* [FR] org-num-mode inverse defaults
@ 2023-10-15 12:26 Maske
2023-10-15 12:40 ` Ihor Radchenko
0 siblings, 1 reply; 7+ messages in thread
From: Maske @ 2023-10-15 12:26 UTC (permalink / raw)
To: Org-mode
[-- Attachment #1: Type: text/plain, Size: 462 bytes --]
Hi
From the first day, I liked org-num-mode, but I think that its default
which numbers all headlines could be problematic.
Right now it only has the options to exclude headlines from being
numbered, so it could be necessary to modify a big amount of headlines,
for numbering just a tree.
I think it would be helpful to have a "positive" way to numbering
headlines, for example "NUMBERED" keyword, while all the other headlines
stay unnumbered.
Bests
[-- Attachment #2: Type: text/html, Size: 1039 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2023-10-15 12:26 [FR] org-num-mode inverse defaults Maske
@ 2023-10-15 12:40 ` Ihor Radchenko
2023-10-16 18:39 ` Maske
2024-02-18 18:46 ` Maske
0 siblings, 2 replies; 7+ messages in thread
From: Ihor Radchenko @ 2023-10-15 12:40 UTC (permalink / raw)
To: Maske; +Cc: Org-mode
Maske <maske1foro@gmail.com> writes:
> From the first day, I liked org-num-mode, but I think that its default
> which numbers all headlines could be problematic.
>
> Right now it only has the options to exclude headlines from being
> numbered, so it could be necessary to modify a big amount of headlines,
> for numbering just a tree.
>
> I think it would be helpful to have a "positive" way to numbering
> headlines, for example "NUMBERED" keyword, while all the other headlines
> stay unnumbered.
You can simply set UNNUMBERED property to t for the whole document via
#+PROPERTY keyword or by customizing `org-global-properties'. Then, the
headings that should be numbered should have their UNNUMBERED set to nil.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2023-10-15 12:40 ` Ihor Radchenko
@ 2023-10-16 18:39 ` Maske
2023-10-17 3:56 ` tomas
2023-10-18 10:37 ` Ihor Radchenko
2024-02-18 18:46 ` Maske
1 sibling, 2 replies; 7+ messages in thread
From: Maske @ 2023-10-16 18:39 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 937 bytes --]
Hi Ihor
I added: (setq org-global-properties '(("UNNUMBERED" . "t")))
But it doesn't work, every headline is numbered. (Not tried in emacs -q).
Bests
On 15/10/2023 14:40, Ihor Radchenko wrote:
> Maske<maske1foro@gmail.com> writes:
>
>> From the first day, I liked org-num-mode, but I think that its default
>> which numbers all headlines could be problematic.
>>
>> Right now it only has the options to exclude headlines from being
>> numbered, so it could be necessary to modify a big amount of headlines,
>> for numbering just a tree.
>>
>> I think it would be helpful to have a "positive" way to numbering
>> headlines, for example "NUMBERED" keyword, while all the other headlines
>> stay unnumbered.
> You can simply set UNNUMBERED property to t for the whole document via
> #+PROPERTY keyword or by customizing `org-global-properties'. Then, the
> headings that should be numbered should have their UNNUMBERED set to nil.
>
[-- Attachment #2: Type: text/html, Size: 1752 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2023-10-16 18:39 ` Maske
@ 2023-10-17 3:56 ` tomas
2023-10-18 10:37 ` Ihor Radchenko
1 sibling, 0 replies; 7+ messages in thread
From: tomas @ 2023-10-17 3:56 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 273 bytes --]
On Mon, Oct 16, 2023 at 08:39:14PM +0200, Maske wrote:
> Hi Ihor
>
> I added: (setq org-global-properties '(("UNNUMBERED" . "t")))
This Elisp code has to be evaluated. Just adding it in an Org
file won't do that.
Where did you add it,and how?
Cheers
--
t
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2023-10-16 18:39 ` Maske
2023-10-17 3:56 ` tomas
@ 2023-10-18 10:37 ` Ihor Radchenko
1 sibling, 0 replies; 7+ messages in thread
From: Ihor Radchenko @ 2023-10-18 10:37 UTC (permalink / raw)
To: Maske; +Cc: Org-mode
Maske <maske1foro@gmail.com> writes:
> I added: (setq org-global-properties '(("UNNUMBERED" . "t")))
>
> But it doesn't work, every headline is numbered. (Not tried in emacs -q).
Yeah. Inheritance was explicitly disabled, actually.
I now changed that, but you need to add UNNUMBERED to
`org-use-property-inheritance' to make things work.
https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=b223a3cc7
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2023-10-15 12:40 ` Ihor Radchenko
2023-10-16 18:39 ` Maske
@ 2024-02-18 18:46 ` Maske
2024-02-19 11:35 ` Ihor Radchenko
1 sibling, 1 reply; 7+ messages in thread
From: Maske @ 2024-02-18 18:46 UTC (permalink / raw)
To: Ihor Radchenko; +Cc: Org-mode
[-- Attachment #1: Type: text/plain, Size: 1032 bytes --]
Hi, Ihor
My config, not working yet, everything is numbered with org-num-mode:
(setq org-num-skip-unnumbered 't)
(setq org-use-property-inheritance '("UNNUMBERED"))
(setq org-global-properties '(("DIR" . "data/") ("UNNUMBERED" . "t")))
Maske
On 15/10/2023 14:40, Ihor Radchenko wrote:
> Maske<maske1foro@gmail.com> writes:
>
>> From the first day, I liked org-num-mode, but I think that its default
>> which numbers all headlines could be problematic.
>>
>> Right now it only has the options to exclude headlines from being
>> numbered, so it could be necessary to modify a big amount of headlines,
>> for numbering just a tree.
>>
>> I think it would be helpful to have a "positive" way to numbering
>> headlines, for example "NUMBERED" keyword, while all the other headlines
>> stay unnumbered.
> You can simply set UNNUMBERED property to t for the whole document via
> #+PROPERTY keyword or by customizing `org-global-properties'. Then, the
> headings that should be numbered should have their UNNUMBERED set to nil.
>
[-- Attachment #2: Type: text/html, Size: 1991 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [FR] org-num-mode inverse defaults
2024-02-18 18:46 ` Maske
@ 2024-02-19 11:35 ` Ihor Radchenko
0 siblings, 0 replies; 7+ messages in thread
From: Ihor Radchenko @ 2024-02-19 11:35 UTC (permalink / raw)
To: Maske; +Cc: Org-mode
Maske <maske1foro@gmail.com> writes:
> My config, not working yet, everything is numbered with org-num-mode:
>
> (setq org-num-skip-unnumbered 't)
>
> (setq org-use-property-inheritance '("UNNUMBERED"))
>
> (setq org-global-properties '(("DIR" . "data/") ("UNNUMBERED" . "t")))
Note that you need development version of Org mode for this.
On my side, your settings appear to work.
--
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2024-02-19 11:32 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-15 12:26 [FR] org-num-mode inverse defaults Maske
2023-10-15 12:40 ` Ihor Radchenko
2023-10-16 18:39 ` Maske
2023-10-17 3:56 ` tomas
2023-10-18 10:37 ` Ihor Radchenko
2024-02-18 18:46 ` Maske
2024-02-19 11:35 ` Ihor Radchenko
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.