summaryrefslogtreecommitdiff
path: root/itches/emacs/language-support.org
diff options
context:
space:
mode:
authorKévin Le Gouguec <kevin.legouguec@gmail.com>2020-10-01 22:50:54 +0200
committerKévin Le Gouguec <kevin.legouguec@gmail.com>2020-10-01 22:50:54 +0200
commit50aef4a8e2b6a53c12febf3728dfd0587915d248 (patch)
treead8596f62ac86982a9cfe2194e456a06c59d07a2 /itches/emacs/language-support.org
parent1412f919f69e08a1cf430b114109917bfb06ad18 (diff)
downloadmemory-leaks-50aef4a8e2b6a53c12febf3728dfd0587915d248.tar.xz
Fix C++ highlighting
Weirdly enough, "c++" works with markdown files but not with org files, where only "cpp" works. While in there, make all tags lowercase for consistency. This is what org-insert-structure-template generates.
Diffstat (limited to 'itches/emacs/language-support.org')
-rw-r--r--itches/emacs/language-support.org8
1 files changed, 4 insertions, 4 deletions
diff --git a/itches/emacs/language-support.org b/itches/emacs/language-support.org
index d784f2b..8ec766e 100644
--- a/itches/emacs/language-support.org
+++ b/itches/emacs/language-support.org
@@ -21,7 +21,7 @@ E.g. ="an ${expression} that should be highlighted"=.
** Do not highlight single-quoted command substitutions
E.g. ='this $(call) should not be highlighted'=.
** Fix indentation on continuation lines
-#+BEGIN_SRC shell
+#+begin_src shell
# cf
# - electric-indent-post-self-insert-function
# - indent-according-to-mode
@@ -35,7 +35,7 @@ foo_bar \
indentisstill4
${foo}bar \
indentisfoobar
-#+END_SRC
+#+end_src
* Makefile
@@ -61,7 +61,7 @@ TeX-insert-quote erases the region and inserts =``= instead.
*** =catcode`$= starts a math environment
Minimal example:
-#+BEGIN_SRC latex
+#+begin_src latex
\documentclass{article}
\usepackage{fancyvrb}
@@ -84,7 +84,7 @@ Things decreased: \textcolor{green}{-49.22%} (514 $\searrow$ 261)
\end{Verbatim}
\end{document}
-#+END_SRC
+#+end_src
Can workaround it with =\catcode36= instead of =\catcode`$=.
*** saving does not add a final newline