<div dir="ltr">Hi Wishi,<div><br></div><div>You can define abbrevs in emacs that work like auto-completions.  However, these are not ideal for LaTeX.  I used to use AlphaX as a text editor, which had a great completions system, and I agree that it's something that Emacs seems to be sorely lacking.</div>
<div><br></div><div>For more information about abbrevs, how they work, and how to define them, you might check out this chapter in the Emacs manual: <a href="http://www.cs.utah.edu/dept/old/texinfo/emacs19/emacs_28.html">http://www.cs.utah.edu/dept/old/texinfo/emacs19/emacs_28.html</a>.  There is also a handy page on how to define your own abbrevs in a file rather than defining each one individually at the command line as the Emacs manual suggests: <a href="http://www.math.umn.edu/~aoleg/emacs/latex.shtml">http://www.math.umn.edu/~aoleg/emacs/latex.shtml</a>.</div>
<div><br></div><div>A few caveats, however:</div><div>1) The second reference above is for xemacs, so you might have to change a bit of the syntax.  I got it mostly working with Aquamacs if you need more info.</div><div>2) Abbrevs beginning with a "\" character don't work!  For example, "\a" will not expand to "\alpha".  Any abbrev beginning with a "\" character seems to fail, even those defined at the command line.  I sent a message to this group yesterday about this problem, but I have yet to hear anything back.</div>
<div><br></div><div>Until someone else replies back with a better suggestion (and I really hope, for Emacs' sake, that there is a better option), slash-less abbrevs are the best I can offer.</div><div><br></div><div>Happy TeXing,</div>
<div>Adrian<br><div><br><div class="gmail_quote">2008/10/9 wishi <span dir="ltr"><<a href="mailto:brouce@gmx.net">brouce@gmx.net</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi fellows!<br>
<br>
I'm writing lots of math-stuff at the moment, in LaTeX. Auctex in<br>
Aquamacs emacs (pre-installed) comes in very handy. But what I'm<br>
missing, being not a really sophisticated emacs user: where's something<br>
like Tab-Completion for Latex (or other) expressions? Sometimes they are<br>
really long ;).<br>
I got to know emacs can everything. Well... ;) Can I complete words,<br>
just like an IDE can, hitting Tab?<br>
If someone knows a nifty default option I can put in my .emacs to enable<br>
that by default - would be great.<br>
<br>
Another question: If I want to create a Tab, to format my source-code a<br>
little better, emacs resists doing that. I don't know... seems to be a<br>
little wired having 20 matrices. Is there any option to make that<br>
possible, too?<br>
<br>
Thanks in advance,<br>
<font color="#888888">wishi<br>
</font><br>_____________________________________________________________<br>
MacOSX-Emacs mailing list<br>
<a href="mailto:MacOSX-Emacs@email.esm.psu.edu">MacOSX-Emacs@email.esm.psu.edu</a><br>
<a href="http://email.esm.psu.edu/mailman/listinfo/macosx-emacs" target="_blank">http://email.esm.psu.edu/mailman/listinfo/macosx-emacs</a><br>
List Archives: <a href="http://dir.gmane.org/gmane.emacs.macintosh.osx" target="_blank">http://dir.gmane.org/gmane.emacs.macintosh.osx</a><br>
<br></blockquote></div><br></div></div></div>