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

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

[elpa] externals/tempel 809e4ad4ee 1/2: Update org-mode template example


From: ELPA Syncer
Subject: [elpa] externals/tempel 809e4ad4ee 1/2: Update org-mode template examples (#113)
Date: Fri, 15 Sep 2023 18:58:41 -0400 (EDT)

branch: externals/tempel
commit 809e4ad4ee64160be25ba21bceff830510078283
Author: Ian S. Pringle <pard@0x44.pw>
Commit: GitHub <noreply@github.com>

    Update org-mode template examples (#113)
    
    Updated the elisp and src examples so that they do not use 
`indent-according-to-tab`. When the header of the source block exists but the 
footer does not yet exist org-mode greedily looks for the next `#+end_src`, 
even if a `#+begin_src` precedes it. If it ends that `#+end_src` it then treats 
all text between tempel's freshly inserted src header and that existing footer 
as source doe and attempts to indent and possible format it accordingly. The 
results will vary by the source language [...]
    
    This change introduces no degradation to the template examples, but it does 
work with org-mode as is.
---
 README.org | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/README.org b/README.org
index 320fbb23fd..34fd59f0f9 100644
--- a/README.org
+++ b/README.org
@@ -269,9 +269,9 @@ org-mode
 (latex "#+begin_export latex" n> r> n "#+end_export")
 (comment "#+begin_comment" n> r> n "#+end_comment")
 (verse "#+begin_verse" n> r> n "#+end_verse")
-(src "#+begin_src " q n> r> n "#+end_src")
+(src "#+begin_src " q n r n "#+end_src")
 (gnuplot "#+begin_src gnuplot :var data=" (p "table") " :file " (p "plot.png") 
n> r> n "#+end_src" :post (org-edit-src-code))
-(elisp "#+begin_src emacs-lisp" n> r> n "#+end_src" :post (org-edit-src-code))
+(elisp "#+begin_src emacs-lisp" n r n "#+end_src" :post (org-edit-src-code))
 (inlsrc "src_" p "{" q "}")
 (title "#+title: " p n "#+author: Daniel Mendler" n "#+language: en")
 



reply via email to

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