[2] | 1 | <!--
|
---|
| 2 | //-----------------------------------------------------------
|
---|
| 3 | // Copyright Christian Arnault LAL-Orsay CNRS
|
---|
| 4 | // arnault@lal.in2p3.fr
|
---|
| 5 | // See the complete license in cmt_license.txt "http://www.cecill.info".
|
---|
| 6 | //-----------------------------------------------------------
|
---|
| 7 | -->
|
---|
| 8 |
|
---|
| 9 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
---|
| 10 | <html>
|
---|
| 11 | <head>
|
---|
[268] | 12 | <!-- phpmyvisites -->
|
---|
| 13 | <a href="http://www.phpmyvisites.net/" title="phpMyVisites | Open source web analytics"
|
---|
| 14 | onclick="window.open(this.href);return(false);">
|
---|
| 15 | <script type="text/javascript">
|
---|
| 16 | <!--
|
---|
| 17 | var a_vars = Array();
|
---|
| 18 | var pagename='';
|
---|
| 19 |
|
---|
| 20 | var phpmyvisitesSite = 1;
|
---|
| 21 | var phpmyvisitesURL = "http://www.cmtsite.org/phpmv2/phpmyvisites.php";
|
---|
| 22 | //-->
|
---|
| 23 | </script>
|
---|
| 24 | <script language=javascript src="http://www.cmtsite.org/phpmv2/phpmyvisites.js"
|
---|
| 25 | type="text/javascript"></script>
|
---|
| 26 | <noscript>
|
---|
| 27 | <p>phpMyVisites | Open source web analytics
|
---|
| 28 | <img src="http://www.cmtsite.org/phpmv2/phpmyvisites.php" alt="phpMyVisites" style="border:0" />
|
---|
| 29 | </p>
|
---|
| 30 | </noscript>
|
---|
| 31 | </a>
|
---|
| 32 | <!-- /phpmyvisites -->
|
---|
| 33 |
|
---|
| 34 |
|
---|
| 35 |
|
---|
[2] | 36 | <title>Emacs mode for CMT</title>
|
---|
| 37 | </head>
|
---|
| 38 |
|
---|
| 39 | <body>
|
---|
| 40 | <center><h1>Emacs mode for CMT</h1></center>
|
---|
| 41 |
|
---|
| 42 | <center>***** Preliminary version v0.4 *****</center>
|
---|
| 43 |
|
---|
| 44 | <center><a href="mailto:perus@lal.in2p3.fr">Antoine Pérus</a></center>
|
---|
| 45 |
|
---|
| 46 |
|
---|
| 47 | <p>The CMT mode for XEmacs is intended to help editing CMT
|
---|
| 48 | requirements files. At the current time it allows coloration of
|
---|
| 49 | files, keyword completion and adds some specific keyword
|
---|
| 50 | motions.</p>
|
---|
| 51 |
|
---|
| 52 | <p>For more informations, type Ctl-h m</p>
|
---|
| 53 |
|
---|
| 54 | <p>CMT mode was only tested with XEmacs (formerly Lucid Emacs)
|
---|
| 55 | version 21.5 on my PowerBook with MacOS 10.3.3 ...</p>
|
---|
| 56 |
|
---|
| 57 | <p>In addition, CMT mode now works with FSF Emacs version 21.2.1
|
---|
| 58 | in a slightly limited way. It may work with some earlier
|
---|
| 59 | versions, but has not been tested.</p>
|
---|
| 60 |
|
---|
| 61 |
|
---|
| 62 | <h2>Files</h2>
|
---|
| 63 |
|
---|
| 64 | <ul>
|
---|
| 65 |
|
---|
| 66 | <li><tt><a href="cmt-mode.el">cmt-mode.el</a></tt> source file of CMT mode</li>
|
---|
| 67 |
|
---|
| 68 | <li><tt><a href="init.el">init.el</a></tt> an example for a XEmacs init file</li>
|
---|
| 69 |
|
---|
| 70 | </ul>
|
---|
| 71 |
|
---|
| 72 | <h2>Installation for XEmacs</h2>
|
---|
| 73 |
|
---|
| 74 | <p>To install CMT mode, you need to insert the following lines
|
---|
| 75 | into your <tt>$HOME/.xemacs/init.el</tt> file.</p>
|
---|
| 76 |
|
---|
| 77 |
|
---|
| 78 | <pre>
|
---|
| 79 | =========================================================
|
---|
| 80 |
|
---|
| 81 | ;; Tell xemacs where to look for CMT mode
|
---|
| 82 | ;; [useless if you put the cmt-mode.el in a directory in your load-path]
|
---|
| 83 |
|
---|
| 84 | (setq load-path (cons "<PATH-TO-CMT-MODE>/" load-path))
|
---|
| 85 |
|
---|
| 86 | ;; Automatically load the CMT mode.
|
---|
| 87 |
|
---|
| 88 | (autoload 'cmt-mode "cmt-mode" "CMT requirements file editing mode." t)
|
---|
| 89 | (setq auto-mode-alist
|
---|
| 90 | (append (list (cons "requirements$" 'cmt-mode))
|
---|
| 91 | auto-mode-alist))
|
---|
| 92 |
|
---|
| 93 | =========================================================
|
---|
| 94 | </pre>
|
---|
| 95 |
|
---|
| 96 | <i>[note that this may also work with recent versions of Emacs]</i>
|
---|
| 97 |
|
---|
| 98 |
|
---|
| 99 | <p>The hook needed to attach local keybindings is already defined
|
---|
| 100 | in <tt>cmt-mode.el</tt>. [For more informations, see <tt>Ctl-h
|
---|
| 101 | m</tt> when editing a requirements file]</p>
|
---|
| 102 |
|
---|
| 103 | <p>In addition, we provide a XEmacs init file example in the
|
---|
| 104 | distribution kit with two functions for commenting or uncommenting
|
---|
| 105 | regions as well as the keybindings to use them inside the CMT
|
---|
| 106 | mode.</p>
|
---|
| 107 |
|
---|
| 108 |
|
---|
| 109 |
|
---|
| 110 | <h2>Todo</h2>
|
---|
| 111 |
|
---|
| 112 | <p>Things I'd like to do (quickly) in CMT mode: (in approximate order of importance)</p>
|
---|
| 113 |
|
---|
| 114 | <ul>
|
---|
| 115 |
|
---|
| 116 | <li>full support of CMT keywords</li>
|
---|
| 117 | <li> decent indentation
|
---|
| 118 | <ul>
|
---|
| 119 | <li>syntax parser</li>
|
---|
| 120 | <li>indentation engine ?</li>
|
---|
| 121 | </ul>
|
---|
| 122 | </li>
|
---|
| 123 | <li> contextual completiony
|
---|
| 124 | <li> ??</li>
|
---|
| 125 | </ul>
|
---|
| 126 |
|
---|
| 127 |
|
---|
| 128 | <h2>Note</h2>
|
---|
| 129 |
|
---|
| 130 | <p>As already said it is a very preliminary version. Some
|
---|
| 131 | structures are in place but very few features are fully
|
---|
| 132 | implemented. Last but not least I'm not a lisp expert and this
|
---|
| 133 | mode is my first attempt.</p>
|
---|
| 134 |
|
---|
| 135 | <p>Please feel free to submit bugs and suggestions.</p>
|
---|
| 136 |
|
---|
| 137 | <hr>
|
---|
| 138 | <address><a href="mailto:arnault@lal.in2p3.fr">Christian Arnault</a></address>
|
---|
| 139 | <!-- Created: Tue Mar 23 10:39:25 CET 2004 -->
|
---|
| 140 | <!-- hhmts start -->
|
---|
| 141 | Last modified: Tue Mar 23 14:31:44 CET 2004
|
---|
| 142 | <!-- hhmts end -->
|
---|
| 143 | </body>
|
---|
| 144 | </html>
|
---|