branch: externals/orgalist commit bf4db70302e464823e119e073674ae9818e39552 Author: Nicolas Goaziou <m...@nicolasgoaziou.fr> Commit: Nicolas Goaziou <m...@nicolasgoaziou.fr>
Set some Org variables so behaviour is predictable * orgalist.el (orgalist-mode): Set some variables from "org-list.el" so that Orgalist behavior does not depend on the behavior of plain lists in Org buffers. --- orgalist.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/orgalist.el b/orgalist.el index d7f4697..a68d23a 100644 --- a/orgalist.el +++ b/orgalist.el @@ -774,13 +774,16 @@ C-c C-c `orgalist-check-item'" (orgalist-mode (when (derived-mode-p 'org-mode) (user-error "Cannot activate Orgalist mode in an Org buffer")) + (setq-local org-blank-before-new-entry + `((plain-list-item . ,orgalist-separated-items))) (setq-local org-list-allow-alphabetical t) (setq-local org-list-automatic-rules nil) (setq-local org-list-demote-modify-bullet nil) + (setq-local org-list-description-max-indent 5) + (setq-local org-list-indent-offset 0) (setq-local org-list-two-spaces-after-bullet-regexp nil) + (setq-local org-list-use-circular-motion nil) (setq-local org-plain-list-ordered-item-terminator ?.) - (setq-local org-blank-before-new-entry - `((plain-list-item . ,orgalist-separated-items))) (add-function :before-until (local 'fill-paragraph-function) #'orgalist--fill-item)