소스 검색

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

Eric Schulte 16 년 전
부모
커밋
8e87868df2
2개의 변경된 파일8개의 추가작업 그리고 1개의 파일을 삭제
  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