From d0a42539ef3f6022db17876ca6f37f1fe58e345d Mon Sep 17 00:00:00 2001 From: Felix Schlitter Date: Sat, 1 Dec 2018 19:48:09 +1300 Subject: [PATCH] Fix #42 Add support for removing empty numbered/"+"-prefixed lists when hitting return --- evil-org.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/evil-org.el b/evil-org.el index 4ef96ae..6d5ccad 100644 --- a/evil-org.el +++ b/evil-org.el @@ -300,7 +300,7 @@ The behavior of this function can be controlled using `evil-org-special-o/O’." (row (nth (1- (org-table-current-line)) rows))) (cl-every 'string-empty-p row))) ((org-at-item-p) - (string-match-p "^[[:space:]]*-[[:space:]]*\\(::[[:space:]]*\\)?$" + (string-match-p "^[[:space:]]*\\([+-]\\|[1-9]+\\.\\)[[:space:]]*\\(::[[:space:]]*\\)?$" (thing-at-point 'line))))) ;; other