Crandel / tempel-collection

Collection tempel templates
GNU General Public License v3.0
77 stars 27 forks source link

Update org.eld elisp and src templates #41

Closed ispringle closed 1 year ago

ispringle commented 1 year ago

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, but for elisp it's indenting all text and then whenever it finds a # it prepends a ,.

This change introduces no degradation to the template examples, but it does work with org-mode as is.

ispringle commented 1 year ago

This addresses this issue in Tempel: https://github.com/minad/tempel/issues/71 And this mirrors the PR I've created for the Tempel examples: https://github.com/minad/tempel/pull/113

ispringle commented 1 year ago

It appears the checks are failing because the use of the *-ts-mode requires Emacs 29 to get access to the treesit module.

Crandel commented 1 year ago

I fixed actions, so you can rebase to latest main