all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Telling auctex to format a user-defined command as \item ?
@ 2014-09-19 16:08 Adam Funk
  2014-09-20  9:30 ` Tassilo Horn
       [not found] ` <mailman.9255.1411205467.1147.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 5+ messages in thread
From: Adam Funk @ 2014-09-19 16:08 UTC (permalink / raw)
  To: help-gnu-emacs

(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


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2014-09-24 15:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-09-19 16:08 Telling auctex to format a user-defined command as \item ? Adam Funk
2014-09-20  9:30 ` Tassilo Horn
     [not found] ` <mailman.9255.1411205467.1147.help-gnu-emacs@gnu.org>
2014-09-20 20:03   ` Adam Funk
2014-09-21  8:13     ` Tassilo Horn
     [not found]     ` <mailman.9287.1411287238.1147.help-gnu-emacs@gnu.org>
2014-09-24 15:00       ` Adam Funk

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.