From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tassilo Horn Newsgroups: gmane.emacs.help Subject: Re: Telling auctex to format a user-defined command as \item ? Date: Sun, 21 Sep 2014 10:13:32 +0200 Message-ID: <87ha01mlw3.fsf@thinkpad-t440p.tsdh.org> References: <0531fbx36a.ln2@news.ducksburg.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1411287253 13116 80.91.229.3 (21 Sep 2014 08:14:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 21 Sep 2014 08:14:13 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Adam Funk Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Sep 21 10:14:07 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 1XVcHX-0000g1-3Z for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 10:14:07 +0200 Original-Received: from localhost ([::1]:38443 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVcHW-0007nI-MY for geh-help-gnu-emacs@m.gmane.org; Sun, 21 Sep 2014 04:14:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVcHH-0007mD-FJ for help-gnu-emacs@gnu.org; Sun, 21 Sep 2014 04:13:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XVcHA-00082K-U5 for help-gnu-emacs@gnu.org; Sun, 21 Sep 2014 04:13:51 -0400 Original-Received: from out3-smtp.messagingengine.com ([66.111.4.27]:59191) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XVcHA-00080k-M8 for help-gnu-emacs@gnu.org; Sun, 21 Sep 2014 04:13:44 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by gateway2.nyi.internal (Postfix) with ESMTP id 17269204D1 for ; Sun, 21 Sep 2014 04:13:39 -0400 (EDT) Original-Received: from frontend1 ([10.202.2.160]) by compute5.internal (MEProxy); Sun, 21 Sep 2014 04:13:39 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=from:to:cc:subject:references:date :in-reply-to:message-id:mime-version:content-type; s=smtpout; bh=nn5Ko4EmJca41SB/Lxtpcm7VlUE=; b=s7vgcltWBEU04WOpGHefkhS7StgY qVGy4+KaMlHpidum6y3jCSe0m6sHSBHuWbbblLD535zYuZpw/GJfI1BWRgmFK5mH 0rzmyirOdpTQx3I+d4Kicq60YZ6uC8QlwhT5NvbeYhNX/mmPiEkCUR+iqN647JJI 7XSzpYbEqaW9xfE= X-Sasl-enc: /OVNyauHzpe0MIGIxvDwf4BXiUE8q0XcTa/vxPLQw/pl 1411287218 Original-Received: from thinkpad-t440p.tsdh.org (unknown [2.162.92.182]) by mail.messagingengine.com (Postfix) with ESMTPA id 08840C00916; Sun, 21 Sep 2014 04:13:37 -0400 (EDT) In-Reply-To: <0531fbx36a.ln2@news.ducksburg.com> (Adam Funk's message of "Sat, 20 Sep 2014 21:03:12 +0100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.27 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:100088 Archived-At: Adam Funk writes: Hi Adam, > Good suggestion! I found the following in .emacs from a previous > customization to handle \boxedverbatim & such: > > #v+ > (defcustom LaTeX-verbatim-regexp ".*verbatim\\*?" > "*Regexp matching environments with indentation at col 0 for begin/end." > :group 'LaTeX-indentation > :type 'regexp) > #v- > > and, working from that & the output of C-h f LaTeX-item-regexp, > arrived at this > > #v+ > (defcustom LaTeX-item-regexp "\\(\\(bib\\)?item\\|method\\)\\b" > "*Regular expression matching macros considered items." > :group 'LaTeX-indentation > :type 'regexp) > #v- > > which works! > > Thanks very much for putting me on the right track. Good, but you shouldn't use `defcustom' for your configurations else the emacs help facilities will say that those variables are defined in your init file, won't show the real (upstream) default values, and the links go into you init file instead to the file where the package in question defines the variable. Use a simple `setq'. (setq LaTeX-verbatim-regexp ".*verbatim\\*?" LaTeX-item-regexp "\\(\\(bib\\)?item\\|method\\)\\b") Bye, Tassilo