From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Adam Funk Newsgroups: gmane.emacs.help Subject: Telling auctex to format a user-defined command as \item ? Date: Fri, 19 Sep 2014 17:08:42 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1411160552 3187 80.91.229.3 (19 Sep 2014 21:02:32 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 19 Sep 2014 21:02: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 Fri Sep 19 23:02:26 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 1XV5Jx-0004n0-Sf for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 23:02:25 +0200 Original-Received: from localhost ([::1]:60556 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XV5Jx-0005Yr-IP for geh-help-gnu-emacs@m.gmane.org; Fri, 19 Sep 2014 17:02:25 -0400 Original-Path: usenet.stanford.edu!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Original-Newsgroups: gnu.emacs.help,comp.text.tex Original-Lines: 26 Original-X-Trace: individual.net t77GgHGJPogqz/vDyoKQFwukz1aiT5bELg3OMWSZH+2Lt+z4Ld X-Orig-Path: news.ducksburg.com!not-for-mail Cancel-Lock: sha1:LRTuXG7enUzf05UEeSFJt7k5aGY= sha1:kj+q4mR5Jcn5cNslKfsaUpgbqSI= User-Agent: slrn/pre1.0.2-9 (Linux) Original-Xref: usenet.stanford.edu gnu.emacs.help:207755 comp.text.tex:436442 X-Mailman-Approved-At: Fri, 19 Sep 2014 17:02:14 -0400 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:100052 Archived-At: (Crossposted; please feel free to follow-up to either group as I read both of them.) I have the following definitions in the preamble: #v+ \newcommand{\slug}{\hspace{1.0em}} \newcommand{\object}[1]{\textsf{#1}} \newcommand{\method}[3]{\item{\slug}\object{#1}{\slug}\url{#2}{\slug}#3} #v- So I have lists with this sort of thing: #v+ \begin{itemize} \method{GET}{http://localhost:port/documents}{lists all document ids.} \method ... #v- The formatting commands (indent-region, fill-region, etc.) aren't keeping the \method commands on separate lines (like \item) because latex-mode/auctex doesn't know what they are. What magic do I need to use to tell it to format \method like \item? Thanks, Adam