cadadr / elisp

Göktuğ's Emacs Lisp programs
79 stars 21 forks source link

org-variable-pitch.el: support "org-list-allow-alphabetical" #38

Closed GregorZattler closed 5 years ago

GregorZattler commented 5 years ago

With org-list-allow-alphabetical set to t, org recognizes ‘a.’, ‘A.’, ‘a)’ and ‘A)’ as beginning of a new list item.

But org-variable-pitch.el does not support this by assigning the monospaced font in these cases.

It would be nice if it would.

Thanks for this useful minor mode, Gregor

cadadr commented 5 years ago

Hi @GregorZattler, thanks for your report, and you’re welcome!

I’ve just pushed commit 46ea37d on devel branch, can test the change and report problems if you find any? If you don’t find any problems I’ll merge this into master so that it’ll appear on Melpa.

PS. TIL about ‘org-list-allow-alphabetical’, thanks for that!

-- İ. Göktuğ Kayaalp https://www.gkayaalp.com/ 024C 30DD 597D 142B 49AC 40EB 465C D949 B101 2427

GregorZattler commented 5 years ago

Hi Göktuğ,

Thanks for your fast fix. I produced a nested plain list with all kinds of bullets, org-mode provides (via C-c -): Your patch fixes the issue in all but one case. It does not work for "*" as the bullet sign.

Thanks again, Gregor

+RESULTS:

: t

cadadr commented 5 years ago

Hi Gregor! I just pushed d982817 which accounts fo the ‘*’ lists. I’m closing the issue now, but feel free to report me if there are any problems. Otherwise, I’ll merge this into master tomorrow.