unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: Paragraph indent in LaTeX-mode?
Date: Fri, 25 Jun 2004 12:02:16 -0600	[thread overview]
Message-ID: <40DC68A8.40400@yahoo.com> (raw)
In-Reply-To: Pine.GSO.4.60.0406232345200.28814@jnyahg.pp.pbyhzovn.rqh

Edgar Bergen wrote:
 > In my .emacs, I load paragraph-indent-minor-mode in a text-mode hook. I'd
 > like to be able to do the same for LaTeX-mode (it makes reading easier),
 > but the mode doesn't end up being loaded (fill-paragraph treats the
 > indentation as a fill prefix, and describe-mode doesn't list
 > paragraph-indent-minor...).
 >
 > (add-hook 'LaTeX-mode-hook
 >           (lambda ()
 >             (outline-minor-mode)
 >             (paragraph-indent-minor-mode)
 >             ))
 >
 > Sadly, I'm ignorant of Emacs Lisp, so maybe I'm missing something obvious
 > here. Is anyone using paragraph indenting successfully in LaTeX-mode, who
 > can give me a pointer?

`C-h f LaTex-mode' explains:
| Entering Latex mode runs the hook `text-mode-hook', then
| `tex-mode-hook', and finally `latex-mode-hook'.

So you shouldn't need to add paragraph-indent-mode to any other hooks.

Also, note that the hook is called latex-mode-hook, not LaTeX-mode-hook.

Finally, if you want to turn a minor mode on, call it with a positive
argument.  If you don't specify an argument (as above), the mode is
toggled and thus will be turned off if it happened to be on already.

-- 
Kevin Rodgers

           reply	other threads:[~2004-06-25 18:02 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <Pine.GSO.4.60.0406232345200.28814@jnyahg.pp.pbyhzovn.rqh>]

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=40DC68A8.40400@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).