Browse Source

org-src: add toml and desktop lang aliases

* lisp/org-src.el (org-src-lang-modes): It is reasonable to assume that
src blocks with the "toml" and "desktop" lang should use
`conf-toml-mode' and `conf-desktop-mode', respectively.
TEC 2 years ago
parent
commit
cbe3f2d697
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-src.el

+ 3 - 1
lisp/org-src.el

@@ -198,12 +198,14 @@ but which mess up the display of a snippet in Org exported files.")
     ("calc" . fundamental)
     ("calc" . fundamental)
     ("cpp" . c++)
     ("cpp" . c++)
     ("ditaa" . artist)
     ("ditaa" . artist)
+    ("desktop" . conf-desktop)
     ("dot" . fundamental)
     ("dot" . fundamental)
     ("elisp" . emacs-lisp)
     ("elisp" . emacs-lisp)
     ("ocaml" . tuareg)
     ("ocaml" . tuareg)
     ("screen" . shell-script)
     ("screen" . shell-script)
     ("shell" . sh)
     ("shell" . sh)
-    ("sqlite" . sql))
+    ("sqlite" . sql)
+    ("toml" . conf-toml))
   "Alist mapping languages to their major mode.
   "Alist mapping languages to their major mode.
 
 
 The key is the language name.  The value is the mode name, as
 The key is the language name.  The value is the mode name, as