qemacs-commit
[Top][All Lists]
Advanced

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

[Qemacs-commit] qemacs latex-mode.c


From: Charlie Gordon
Subject: [Qemacs-commit] qemacs latex-mode.c
Date: Tue, 07 Jan 2014 14:46:24 +0000

CVSROOT:        /sources/qemacs
Module name:    qemacs
Changes by:     Charlie Gordon <chqrlie>        14/01/07 14:46:24

Modified files:
        .              : latex-mode.c 

Log message:
        latex-mode: add extension sty for tex style sheets
        
        * add KEY_CTRLC(x) as compressed key combination
        * bind TeX-command-master to C-c C-c

CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/qemacs/latex-mode.c?cvsroot=qemacs&r1=1.36&r2=1.37

Patches:
Index: latex-mode.c
===================================================================
RCS file: /sources/qemacs/qemacs/latex-mode.c,v
retrieving revision 1.36
retrieving revision 1.37
diff -u -b -r1.36 -r1.37
--- latex-mode.c        6 Jan 2014 09:40:20 -0000       1.36
+++ latex-mode.c        7 Jan 2014 14:46:24 -0000       1.37
@@ -127,7 +127,11 @@
     /* Halibut (by Simon Tatham) has a syntax similar to TeX and uses
      * .but extension */
     if (match_extension(p->filename, mode->extensions))
-        return 100;
+        return 80;
+
+    /* Match TeX style sheets if they start with a comment */
+    if (match_extension(p->filename, "sty") && p->buf[0] == '%')
+        return 80;
 
     return 0;
 }
@@ -303,8 +307,7 @@
 static CmdDef latex_commands[] = {
     CMD2( '\"', KEY_NONE,
           "tex-insert-quote", do_tex_insert_quote, ES, "*")
-    /* this should actually be KEY_CTRLC(KEY_CTRL('c')), ie C-c C-c */
-    CMD2( KEY_CTRL('c'), KEY_NONE,
+    CMD2( KEY_CTRLC(KEY_CTRL('c')), KEY_NONE,   /* C-c C-c */
           "TeX-command-master", do_latex, ESs,
           "s{Command: (default LaTeX) }[latex]|latex|")
     CMD_DEF_END,



reply via email to

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