From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Marcin Borkowski Newsgroups: gmane.emacs.help Subject: Re: latex-mode hook? Date: Mon, 8 Sep 2014 11:10:10 +0200 Organization: WMI UAM Message-ID: <20140908111010.31ed65b8@aga-netbook> References: <87bnqr27vm.fsf@skimble.plus.com> <87ppf7feq0.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1410167454 15722 80.91.229.3 (8 Sep 2014 09:10:54 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 8 Sep 2014 09:10:54 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Sep 08 11:10:49 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1XQuyF-0007Mi-3u for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2014 11:10:47 +0200 Original-Received: from localhost ([::1]:41750 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQuyE-0006GC-JK for geh-help-gnu-emacs@m.gmane.org; Mon, 08 Sep 2014 05:10:46 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:47519) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQuxs-0006G7-RP for help-gnu-emacs@gnu.org; Mon, 08 Sep 2014 05:10:29 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XQuxo-0002xh-Gj for help-gnu-emacs@gnu.org; Mon, 08 Sep 2014 05:10:24 -0400 Original-Received: from msg.wmi.amu.edu.pl ([2001:808:114:2::50]:41560) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XQuxo-0002wM-9R for help-gnu-emacs@gnu.org; Mon, 08 Sep 2014 05:10:20 -0400 Original-Received: from localhost (localhost [127.0.0.1]) by msg.wmi.amu.edu.pl (Postfix) with ESMTP id 59B0246C6C for ; Mon, 8 Sep 2014 11:10:17 +0200 (CEST) Original-Received: from msg.wmi.amu.edu.pl ([127.0.0.1]) by localhost (msg.wmi.amu.edu.pl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id m-loYMUq01eM for ; Mon, 8 Sep 2014 11:10:17 +0200 (CEST) Original-Received: from aga-netbook (abps213.neoplus.adsl.tpnet.pl [83.8.60.213]) by msg.wmi.amu.edu.pl (Postfix) with ESMTPSA id 86A8C46C65 for ; Mon, 8 Sep 2014 11:10:16 +0200 (CEST) In-Reply-To: <87ppf7feq0.fsf@debian.uxu> X-Mailer: Claws Mail 3.8.1 (GTK+ 2.24.20; i686-pc-linux-gnu) X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:808:114:2::50 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:99690 Archived-At: Dnia 2014-09-07, o godz. 20:49:27 Emanuel Berg napisa=C5=82(a): > Teemu Likonen writes: >=20 > > Probably you need to use LaTeX-mode-hook variable > > instead. It's different from latex-mode-hook (note > > the letter case difference). >=20 > Indeed, but how so? And why? >=20 > I always used the latex-mode-hook and it works for the > major mode that I use for LaTeX, logically named > LaTeX-mode: >=20 > LaTeX mode defined in `tex-mode.el': > Major mode for editing files of input for LaTeX. >=20 > I know there are other modes for LaTeX, most notably > AUCTeX that seems to be more popular than latex-mode. > (To me it is not really an issue since all I need is > syntax highlighting, basically, as well as the mode > itself so I can setup certain options and a couple of > dufuns.) >=20 > Is AUCTeX what Kimble is using? If not, what? And, why > is that called something that can be confused > (apparently) with the latex-mode stuff? AFAIK, latex-mode is the built-in, very limited LaTeX mode, and LaTeX-mode is the AUCTeX's one (which is much, much better - think autocompletion, for instance). Also the texmathp function. And parsing of \usepackage[...]{inputenc}. And more. > Case-sensitiveness is a good thing but it doesn't mean > it makes sense to have one "ls" command and one "LS" > command and one "lS" and one "Ls". I guess AUCTeX might call latex-mode-hook, too. Best PS. Also, don't use \em, \bf & friends. They are evil. See e.g. http://tex.stackexchange.com/questions/25911/what-is-the-difference-between= -em-and-emph and http://tex.stackexchange.com/questions/11199/why-different-commands-for-see= mingly-similar-tasks --=20 Marcin Borkowski http://octd.wmi.amu.edu.pl/en/Marcin_Borkowski Adam Mickiewicz University