all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Tassilo Horn <tsdh@gnu.org>
To: Adam Funk <a24061@ducksburg.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Telling auctex to format a user-defined command as \item ?
Date: Sun, 21 Sep 2014 10:13:32 +0200	[thread overview]
Message-ID: <87ha01mlw3.fsf@thinkpad-t440p.tsdh.org> (raw)
In-Reply-To: <0531fbx36a.ln2@news.ducksburg.com> (Adam Funk's message of "Sat,  20 Sep 2014 21:03:12 +0100")

Adam Funk <a24061@ducksburg.com> 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



  reply	other threads:[~2014-09-21  8:13 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
     [not found]     ` <mailman.9287.1411287238.1147.help-gnu-emacs@gnu.org>
2014-09-24 15:00       ` Adam Funk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ha01mlw3.fsf@thinkpad-t440p.tsdh.org \
    --to=tsdh@gnu.org \
    --cc=a24061@ducksburg.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.