[OS X Emacs] Re: MacOSX-Emacs Digest, Vol 61, Issue 2

Robert Primmer robert.primmer at gmail.com
Mon Nov 19 15:18:14 EST 2012


Thanks much, David!

Initially this didn't work, but it gave me the right tool to discover that
I (believe) I had a contradictory auto-fill value.  All set now.

Appreciate the help.


On Mon, Nov 19, 2012 at 3:00 PM, <macosx-emacs-request at email.esm.psu.edu>wrote:

> Send MacOSX-Emacs mailing list submissions to
>         macosx-emacs at email.esm.psu.edu
>
> To subscribe or unsubscribe via the World Wide Web, visit
>         http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> or, via email, send a message with subject or body 'help' to
>         macosx-emacs-request at email.esm.psu.edu
>
> You can reach the person managing the list at
>         macosx-emacs-owner at email.esm.psu.edu
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of MacOSX-Emacs digest..."
>
>
> Today's Topics:
>
>    1. word wrap in latex mode (Robert Primmer)
>    2. Re: word wrap in latex mode (David Reitter)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 19 Nov 2012 08:56:31 -0500
> From: Robert Primmer <robert.primmer at gmail.com>
> Subject: [OS X Emacs] word wrap in latex mode
> To: macosx-emacs at email.esm.psu.edu
> Message-ID:
>         <CADsG54qc50cB6fcJ=-7oJgOfOC1+OoE=
> 622Y7A6VDq9rx1XR3g at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I've enabled soft word wrap by default - here's the entry from
> customizations.el
>
>      '(auto-word-wrap-default-function (quote set-word-wrap))
>
> which works great for text mode. However, I cannot find a way to enable it
> by default for latex mode. Searching online I've found articles that
> indicate different ways to achieve this. I've listed the 3 below that I've
> found most often.
>
>     (add-hook 'latex-mode-hook 'turn-on-word-wrap)
>
>     (add-hook 'latex-mode-hook
>         (defun turn-on-word-wrap () (setq word-wrap t)))
>
>     (add-hook 'latex-mode-hook
>        (defun auto-word-wrap-default-function () (setq turn-on-word-wrap
> t)))
>
> I've tried each of these, but none seem to enable soft word wrap by default
> when opening a .tex file.
>
> Thanks for any pointers!
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20121119/7e894081/attachment-0001.html
>
> ------------------------------
>
> Message: 2
> Date: Mon, 19 Nov 2012 09:47:42 -0500
> From: David Reitter <david.reitter at gmail.com>
> Subject: Re: [OS X Emacs] word wrap in latex mode
> To: Emacs on Mac OS X Mailing List <macosx-emacs at email.esm.psu.edu>
> Message-ID: <4ADEAE5A-64E5-4782-88C6-E415F6C67AB8 at gmail.com>
> Content-Type: text/plain; charset=iso-8859-1
>
> Robert,
>
> On Nov 19, 2012, at 8:56 AM, Robert Primmer <robert.primmer at gmail.com>
> wrote:
> >
> >     (add-hook 'latex-mode-hook 'turn-on-word-wrap)
> >
>
> Yes, but you're not turning off other wrapping/truncating.
>
>
> >     (add-hook 'latex-mode-hook
> >         (defun turn-on-word-wrap () (setq word-wrap t)))
>
> Will work with very old Emacsen.
>
> >     (add-hook 'latex-mode-hook
> >        (defun auto-word-wrap-default-function () (setq turn-on-word-wrap
> t)))
>
> `turn-on-word-wrap' is not a variable.  This can't possibly work.
>
>
> Try this:
>
> (add-hook 'latex-mode-hook 'set-word-wrap)
>
>
> (You can find out the right function name by typing C-h k, then selecting
> the menu entry you want.)
>
>
>
> --
> http://aquamacs.org -- Aquamacs: Emacs on Mac OS X
> http://aquamacs.org/donate -- Could we help you? Return the favor and
> support the Aquamacs Project!
>
> ------------------------------
>
> _____________________________________________________________
> MacOSX-Emacs mailing list
> MacOSX-Emacs at email.esm.psu.edu
> http://email.esm.psu.edu/mailman/listinfo/macosx-emacs
> List Archives: http://dir.gmane.org/gmane.emacs.macintosh.osx
>
> End of MacOSX-Emacs Digest, Vol 61, Issue 2
> *******************************************
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://email.esm.psu.edu/pipermail/macosx-emacs/attachments/20121119/c4917a50/attachment.html>


More information about the MacOSX-Emacs mailing list