Re: Orgmode plain list bullet : change automatically with list depth

2022-06-29 Thread DEBRY . Edouard
Finally, it has nothing to do with my own settings. It happens with this : - zeze - ghrghrgh - lqlqsqs 1. sdsdsd - sdsd - mcpscls because there is only one line between both lists and (I did not know it) orgmode thinks they are the same, then any depth change in second list changes the 1

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-24 Thread Ihor Radchenko
DEBRY.Edouard writes: > if I perform Alt-leftarrow on mmd, this element is shift on the left > but then the whole list is turned into : > - first >- ssdsd >- mmd > - second > > Is there a way to avoid that ? I am unable to reproduce on the latest main and bugfix. Best, Ihor

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-24 Thread DEBRY . Edouard
The only trouble with this is that if I have a list with both numbers and bullets : 1. first - ssdsd - mmd 2. second if I perform Alt-leftarrow on mmd, this element is shift on the left but then the whole list is turned into : - first - ssdsd - mmd - second Is there a w

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-19 Thread Tim Cross
Edouard Debry writes: > Are you sure bullet lists are irrelevant to org ? > > I tried without success to make a list without "-" or "+" in my > *scratch*. > Sorry, I wasn't clear enough. The 'marker' which is at the start of a list item is important to org. What isn't important is the type of

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-19 Thread Edouard Debry
Thanks for your information complement. Indeed, I know too few about emacs to guess that by myself. And it works ! For anyone interested, here are the settings : (font-lock-add-keywords 'org-mode '(("^ *\\([-]\\) " (0 (let* ((depth (org-list--

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-19 Thread Ihor Radchenko
Edouard Debry writes: > The key point is the regexp. I do not know if it is possible to capture > the depth level with a regexp. That is why I tried to use > org-list--depth in : > > ... > but it seems that "org-element-at-point" messes things. Sorry, I though that I gave you enough information

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-19 Thread Edouard Debry
What I am looking forward to is 1) not modifying the true "bullet" in the raw text, it will always be "-" I just want the appearance to look "nicer" 2) having a bullet appearance level depth specific, e.g. ▪ this is first level of a list ▪ still first level ➤ this is the second level ➤ this i

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-19 Thread Edouard Debry
Are you sure bullet lists are irrelevant to org ? I tried without success to make a list without "-" or "+" in my *scratch*. Regards Tim Cross writes: > Samuel Wales writes: > >> sure. >> >> iiuc i think op wants 2 things: >> >> 1] graphical bullets. i.e. not the - + etc. that are in the

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-17 Thread Tim Cross
Samuel Wales writes: > sure. > > iiuc i think op wants 2 things: > > 1] graphical bullets. i.e. not the - + etc. that are in the org > plain text as saved to disk. > 2] each level of a list to have the same bullet style > > > examples of 2]: > > a conforming list: > > - this is level 1. f

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-17 Thread Samuel Wales
sure. iiuc i think op wants 2 things: 1] graphical bullets. i.e. not the - + etc. that are in the org plain text as saved to disk. 2] each level of a list to have the same bullet style examples of 2]: a conforming list: - this is level 1. for this list, we always want level 1 to use t

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-17 Thread Ihor Radchenko
Samuel Wales writes: > i wonder if org could do the semantics in the text, while > fontification could do the appearance only. > > org allows you to change the bullet style [real text bullets rather > than fontification] upon demotion. > > thus, you can have it consistent that demoting + from top

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-16 Thread Samuel Wales
grr i meant "item 1" not "level 1". On 6/16/22, Samuel Wales wrote: > i wonder if org could do the semantics in the text, while > fontification could do the appearance only. > > org allows you to change the bullet style [real text bullets rather > than fontification] upon demotion. > > thus, you

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-16 Thread Samuel Wales
i wonder if org could do the semantics in the text, while fontification could do the appearance only. org allows you to change the bullet style [real text bullets rather than fontification] upon demotion. thus, you can have it consistent that demoting + from top level will create - on level 2 for

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-16 Thread Ihor Radchenko
DEBRY.Edouard writes: > I mean that all custom set faces disappear, just try, if it works for > you i am interested I see. FYI, you can try to run M-x font-lock-debug-fontify to identify the problem. The issue you are seeing is because org-element-at-point alters match data and thus your (match

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-16 Thread DEBRY . Edouard
I mean that all custom set faces disappear, just try, if it works for you i am interested Ihor Radchenko writes: > --- > Attention, ce

Re: Orgmode plain list bullet : change automatically with list depth

2022-06-14 Thread Ihor Radchenko
DEBRY.Edouard writes: > But it breaks the org file. What do you mean by "breaks the org file"?

Orgmode plain list bullet : change automatically with list depth

2022-06-14 Thread DEBRY . Edouard
When making a plain list in orgmode, I would like to change of bullet autmatically depending on the list depth. Currently, I use this to prettify bullets : (font-lock-add-keywords 'org-mode '(("^ *\\([-]\\) " (0 (prog1