summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <mail@nicolasgoaziou.fr>2018-05-01 23:16:02 +0200
committerNicolas Goaziou <mail@nicolasgoaziou.fr>2018-05-01 23:17:40 +0200
commit8efcb62dc415ad8dcd61b7f6aa7806cbefbf2f4f (patch)
tree5cd8b6129d342427a704ae5038f06b10c0e77c73
parent9ab45860a64e0da416ddd4ec2735162fab5d4ff4 (diff)
downloadorg-mode-8efcb62dc415ad8dcd61b7f6aa7806cbefbf2f4f.tar.gz
org-src: Add association between beamer and `latex-mode'
* lisp/org-src.el (org-src-lang-modes): Add an entry for "beamer". Improve docstring.
-rw-r--r--lisp/org-src.el32
1 files changed, 22 insertions, 10 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 30b5895..8d33eaa 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -183,17 +183,29 @@ or similar things which you want to have when editing a source code file,
but which mess up the display of a snippet in Org exported files.")
(defcustom org-src-lang-modes
- '(("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist)
- ("asymptote" . asy) ("dot" . fundamental) ("sqlite" . sql)
- ("calc" . fundamental) ("C" . c) ("cpp" . c++) ("C++" . c++)
- ("screen" . shell-script) ("shell" . sh) ("bash" . sh))
+ '(("C" . c)
+ ("C++" . c++)
+ ("asymptote" . asy)
+ ("bash" . sh)
+ ("beamer" . latex)
+ ("calc" . fundamental)
+ ("cpp" . c++)
+ ("ditaa" . artist)
+ ("dot" . fundamental)
+ ("elisp" . emacs-lisp)
+ ("ocaml" . tuareg)
+ ("screen" . shell-script)
+ ("shell" . sh)
+ ("sqlite" . sql))
"Alist mapping languages to their major mode.
-The key is the language name, the value is the string that should
-be inserted as the name of the major mode. For many languages this is
-simple, but for language where this is not the case, this variable
-provides a way to simplify things on the user side.
-For example, there is no ocaml-mode in Emacs, but the mode to use is
-`tuareg-mode'."
+
+The key is the language name. The value is the mode name, as
+a string or a symbol, without the \"-mode\" suffix.
+
+For many languages this is simple, but for language where this is
+not the case, this variable provides a way to simplify things on
+the user side. For example, there is no `ocaml-mode' in Emacs,
+but the mode to use is `tuareg-mode'."
:group 'org-edit-structure
:type '(repeat
(cons