[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[AUCTeX-devel] minted.el: Parsing with `\newminted'

From: Arash Esbati
Subject: [AUCTeX-devel] minted.el: Parsing with `\newminted'
Date: Fri, 09 Jan 2015 19:21:22 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.4


I copied this from minted doc in a file:


After `C-u C-c C-n C-c C-e', AUCTeX offers `cpp' and `cpp*' for
completion.  My expectation was `cppcode' and `cppcode*'.  The
one-liner below fixes this.

diff --git a/style/minted.el b/style/minted.el
index 83d4764..3c768e2 100644
--- a/style/minted.el
+++ b/style/minted.el
@@ -138,7 +138,7 @@
   (dolist (name-lang LaTeX-minted-auto-newminted)
     (let* ((env (if (> (length (car name-lang)) 0)
                    (car name-lang)
-                 (cadr name-lang)))
+                 (concat (cadr name-lang) "code")))
           (env* (concat env "*")))
       (add-to-list 'LaTeX-auto-environment (list env))
       (add-to-list 'LaTeX-auto-environment

Best, Arash

reply via email to

[Prev in Thread] Current Thread [Next in Thread]