5

When I type <s+TAB, a source code block is inserted, but the text is lowercase:

#+begin_src

#+end_src

How can I make it create uppercase text instead? I have always thought that uppercase was the standard.

I am using Doom Emacs, if that helps.

Drew
  • 75,699
  • 9
  • 109
  • 225
  • It looks like the block header/footer text is hard-coded in the function `org-tempo-add-block`, with no option to specify uppercase. The help file/info manual suggest they will be uppercase, but that's not possible with the existing code. Same with the new `org-insert-structure-template`, (`C-c, C-,`). This is surprising! – Tyler Jul 05 '21 at 18:36
  • 1
    No, lower case is the (new) standard. The manuals use upper case to "to emphasize specific syntax in code snippets." See this [thread](https://orgmode.org/list/CADn3Z2KhELtaMpBz8obkUWsHDEtD2_T2jdLE-2ZuKoPKD3APyQ@mail.gmail.com/) on the ML. – NickD Jul 06 '21 at 01:26
  • @NickD Ha! There may be a reason behind this, but for users who haven't read that particular thread on the mailing list, it's still surprising (to me at least, and maybe also @lisp-machine) that the templates don't insert text that match the examples in the manual. This is arguably a documentation bug. – Tyler Jul 06 '21 at 01:41
  • @Tyler: I'm not entirely convinced (one way or the other), but I (or you :-) ) might reply to that thread and point out the confusion (with this question as an example). – NickD Jul 06 '21 at 13:20
  • @Tyler thanks for pointing out that thread. I could find nothing in my initial web searches. – lisp-machine Jul 06 '21 at 13:22

0 Answers0