Forráskód Böngészése

org-babel: asymptote maps to asy-mode in `org-src-lang-modes' and added requirements section to org-babel-asymptote.el

Eric Schulte 15 éve
szülő
commit
8e87868df2
2 módosított fájl, 8 hozzáadás és 1 törlés
  1. 6 0
      contrib/babel/lisp/langs/org-babel-asymptote.el
  2. 2 1
      lisp/org-src.el

+ 6 - 0
contrib/babel/lisp/langs/org-babel-asymptote.el

@@ -38,6 +38,12 @@
 ;;
 ;; 4) there are no variables (at least for now)
 
+;;; Requirements:
+
+;; - The asymptote program :: http://asymptote.sourceforge.net/
+;;
+;; - asy-mode :: Major mode for editing asymptote files
+
 ;;; Code:
 (require 'org-babel)
 

+ 2 - 1
lisp/org-src.el

@@ -110,7 +110,8 @@ 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))
+  '(("ocaml" . tuareg) ("elisp" . emacs-lisp) ("ditaa" . artist)
+    ("asymptote" . asy))
   "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