[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

'false' list item

From: Juan Manuel Macías
Subject: 'false' list item
Date: Mon, 15 Feb 2021 18:37:50 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux)


If a line in a paragraph starts with a digit (or letter) + period +
space, Org misinterprets that as a list item. I almost always notice
this only when I export my document, which is a nuisance.

I wonder if there is any standard solution to that, or if I'm missing
something... All that occurred to me is this "preventive" solution,
using `highlight-regexp':

#+begin_src emacs-lisp
  (defface my-lists-item-box
    '((t :weight bold :foreground "white" :background "orange"))

  (defun my-org-item-highlight ()
    (highlight-regexp org-list-full-item-re 'my-lists-item-box))

  (add-hook 'org-mode-hook 'my-org-item-highlight)

Best regards,

Juan Manuel 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]