emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[elpa] externals/orgalist bf4db70 2/3: Set some Org variables so behavio


From: Nicolas Goaziou
Subject: [elpa] externals/orgalist bf4db70 2/3: Set some Org variables so behaviour is predictable
Date: Tue, 12 Jun 2018 17:13:03 -0400 (EDT)

branch: externals/orgalist
commit bf4db70302e464823e119e073674ae9818e39552
Author: Nicolas Goaziou <address@hidden>
Commit: Nicolas Goaziou <address@hidden>

    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)



reply via email to

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