From 7da76d7fd126a105037692f3c967852bb373a3f3 Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Fri, 20 Aug 2021 17:27:54 -0500 Subject: Better handle prefix links in acdw/org-return-dwim --- lisp/acdw-org.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'lisp') diff --git a/lisp/acdw-org.el b/lisp/acdw-org.el index 123c701..de2bafc 100644 --- a/lisp/acdw-org.el +++ b/lisp/acdw-org.el @@ -44,7 +44,12 @@ appropriate. In tables, insert a new row or end the table." (funcall func)) (funcall auto-fill-function))) (if default - (org-return) + ;; Handle prefix args + (pcase default + ('(4) (newline)) + ('(16) (newline 2)) + ;; this is ... not ideal. but whatever. + (_ (newline default))) (cond ;; Act depending on context around point. -- cgit 1.4.1-21-gabe81