From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Emanuel Berg Newsgroups: gmane.emacs.help Subject: Re: latex-mode hook? Date: Tue, 09 Sep 2014 21:35:39 +0200 Organization: Aioe.org NNTP Server Message-ID: <87oauoy4c4.fsf@debian.uxu> References: <87bnqr27vm.fsf@skimble.plus.com> <87ppf7feq0.fsf@debian.uxu> <878ultg4mc.fsf@debian.uxu> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1410291632 14786 80.91.229.3 (9 Sep 2014 19:40:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Sep 2014 19:40:32 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Sep 09 21:40:27 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 1XRRH0-0007u4-T1 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 21:40:19 +0200 Original-Received: from localhost ([::1]:51577 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XRRH0-0006ai-G4 for geh-help-gnu-emacs@m.gmane.org; Tue, 09 Sep 2014 15:40:18 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!us.feeder.erje.net!news2.arglkargh.de!news.mixmin.net!aioe.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 55 Original-NNTP-Posting-Host: P0uMB9BthHuWo8+BJXB4Mw.user.speranza.aioe.org Original-X-Complaints-To: abuse@aioe.org User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-Notice: Filtered by postfilter v. 0.8.2 Cancel-Lock: sha1:rFu1EYtqgxVwbR3ckwBB854qyP8= Mail-Copies-To: never Original-Xref: usenet.stanford.edu gnu.emacs.help:207466 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:99742 Archived-At: Marcin Borkowski 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} OK, well, that is more of a snippet expansion feature than autocompletion to my mind. With autocompletion I mean, say that you want to search for "injury" - when you type "inj" "injustice" appears. I can be even worse with a whole list of suggestions (I take it based on a word list and/or user behavior/probability theory). That's just disruptive to me - I know what I want to type, so let me just type it with no visual noise or "injustices" ever entering my brain. > How is that not a win? And it even understands your > \newcommand and \newenvironment invocations. No, I can see the benefit of that if you are a LaTeX professional or do it often. In my case it wouldn't be such a gain because I seldom use LaTeX and when I do it is for big, "slow" projects. I don't mind taking the extra time thinking and typing. For a shell language like Perl or zsh or Python perhaps something like that would appeal to me, I don't know. (I'm very fond of typing.) > 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. It is a bit difficult following those scenarios to me but that sounds useful, yes. -- underground experts united