[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Telling auctex to format a user-defined command as \item ?
From: |
Tassilo Horn |
Subject: |
Re: Telling auctex to format a user-defined command as \item ? |
Date: |
Sun, 21 Sep 2014 10:13:32 +0200 |
User-agent: |
Gnus/5.130012 (Ma Gnus v0.12) Emacs/24.4.50 (gnu/linux) |
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