diff lisp/calc/calc.el @ 60569:a91fcdcbdd69

(calc-language-alist): New variable.
author Jay Belanger <jay.p.belanger@gmail.com>
date Fri, 11 Mar 2005 22:18:42 +0000
parents d46309369c36
children e1aa8774d8a0 8395880305fe
line wrap: on
line diff
--- a/lisp/calc/calc.el	Fri Mar 11 21:44:42 2005 +0000
+++ b/lisp/calc/calc.el	Fri Mar 11 22:18:42 2005 +0000
@@ -717,6 +717,20 @@
 (defvar var-gamma '(special-const (math-gamma-const)))
 (defvar var-Modes '(special-const (math-get-modes-vec)))
 
+(defvar calc-language-alist
+  '((latex-mode . latex)
+    (tex-mode   . tex)
+    (plain-tex-mode . tex)
+    (context-mode . tex)
+    (nroff-mode . eqn)
+    (pascal-mode . pascal)
+    (c-mode . c)
+    (c++-mode . c)
+    (fortran-mode . fortran)
+    (f90-mode . fortran))
+  "Alist of major modes with appropriate Calc languages.")
+
+
 (mapcar (lambda (v) (or (boundp v) (set v nil)))
 	  calc-local-var-list)