unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Marcin Borkowski <mbork@wmi.amu.edu.pl>
To: help-gnu-emacs@gnu.org
Subject: Re: latex-mode hook?
Date: Tue, 9 Sep 2014 09:51:51 +0200	[thread overview]
Message-ID: <20140909095151.706f3cdd@aga-netbook> (raw)
In-Reply-To: <878ultg4mc.fsf@debian.uxu>

Dnia 2014-09-08, o godz. 23:54:35
Emanuel Berg <embe8573@student.uu.se> napisał(a):

> Marcin Borkowski <mbork@wmi.amu.edu.pl> writes:
> 
> > and LaTeX-mode is the AUCTeX's one
> > (which is much, much better think autocompletion
> 
> I
> I think
> I think not

C-c C-e enum TAB RET

and you get

\begin{enumerate}
  (point)
\end{enumerate}

How is that not a win?  And it even understands your \newcommand and
\newenvironment invocations.

> > Also the texmathp function.
> > And parsing of \usepackage[...]{inputenc}. And more.
> 
> What are those?

texmathp (as the name implies?) returns t if the point is in math mode
and nil otherwise.  It knows about $...$, \(...\), \[...\],
\begin{equation} ... \end{equation}, it handles $...$ inside
\text{...} inside \[...\] etc. correctly...  See here:
http://mbork.pl/?search=texmathp for two possible applications.

In AUCTeX, if I have \usepackage[cp1250]{inputenc} near the beginning,
the buffer is automatically put in the respective encoding.  It's not
a big deal in English-speaking countries, I guess, but here in Poland,
where Windoze uses CP-1250, old Linux files use ISO-8859-2 and
everyone else uses UTF-8, it's /very/ convenient.

Best,

-- 
Marcin Borkowski
http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski
Adam Mickiewicz University



  reply	other threads:[~2014-09-09  7:51 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-09-07  7:43 latex-mode hook? Sharon Kimble
2014-09-07  7:49 ` Teemu Likonen
2014-09-07 13:22   ` Sharon Kimble
     [not found] ` <mailman.8384.1410076210.1147.help-gnu-emacs@gnu.org>
2014-09-07 18:49   ` Emanuel Berg
2014-09-08  9:10     ` Marcin Borkowski
2014-09-08 10:30       ` Thorsten Jolitz
     [not found]       ` <mailman.8449.1410172233.1147.help-gnu-emacs@gnu.org>
2014-09-08 11:46         ` Sebastien Vauban
2014-09-08 12:55           ` Rusi
2014-09-08 22:02             ` Emanuel Berg
2014-09-09  9:17           ` Sebastien Vauban
2014-09-09  9:34             ` Thorsten Jolitz
2014-09-09 12:39               ` Stefan Monnier
2014-09-08 21:57         ` Emanuel Berg
2014-09-09  0:49           ` Thorsten Jolitz
     [not found]           ` <mailman.8489.1410223819.1147.help-gnu-emacs@gnu.org>
2014-09-09  1:09             ` Emanuel Berg
2014-09-09  6:54               ` Thorsten Jolitz
2014-09-09 12:34           ` Stefan Monnier
     [not found]     ` <mailman.8444.1410167430.1147.help-gnu-emacs@gnu.org>
2014-09-08 21:54       ` Emanuel Berg
2014-09-09  7:51         ` Marcin Borkowski [this message]
2014-09-09 12:06           ` Stefan Monnier
2014-09-09 12:36             ` Tassilo Horn
2014-09-09 13:21               ` Stefan Monnier
2014-09-09 13:39                 ` Marcin Borkowski
2014-09-09 14:13                   ` Stefan Monnier
2014-09-09 17:00                     ` Marcin Borkowski
2014-09-09 17:24                       ` Stefan Monnier
     [not found]                       ` <mailman.8551.1410283491.1147.help-gnu-emacs@gnu.org>
2014-09-09 19:51                         ` Emanuel Berg
2014-09-09 13:14             ` Thorsten Jolitz
     [not found]         ` <mailman.8504.1410249128.1147.help-gnu-emacs@gnu.org>
2014-09-09 19:35           ` Emanuel Berg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140909095151.706f3cdd@aga-netbook \
    --to=mbork@wmi.amu.edu.pl \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).