From: xz <zhang.xi.cn@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How to go to next line on the screen instead of going to next line in the text?
Date: Wed, 4 Jun 2008 07:48:46 -0700 (PDT) [thread overview]
Message-ID: <3ed818c4-ad1a-48d9-b2ab-68a6b15afa71@l64g2000hse.googlegroups.com> (raw)
In-Reply-To: mailman.12656.1212585897.18990.help-gnu-emacs@gnu.org
On Jun 4, 8:24 am, Kevin Rodgers <kevin.d.rodg...@gmail.com> wrote:
> xz wrote:
> > On May 31, 12:34 am, Giorgos Keramidas <keram...@ceid.upatras.gr>
> > wrote:
> >> Check out `longlines-mode'. I think you'll like it :)
>
> > I think this is what I want.
> > But one more question, how to turn on this mode automatically every
> > time when I launch emacs?
> > Should I simply put the following line in the .emacs file? Or what
> > else should I do?
>
> > (longlines-mode)
>
> Long Lines mode is a minor mode, local to each buffer. So you'll
> need to turn it on in every buffer where you want it, which can be
> done 2 ways: via major mode hooks or via file visiting hooks.
>
> Here's the first way:
> (add-hook 'text-mode-hook 'longlines-mode)
> ...
> (add-hook 'foo-mode-hook 'longlines-mode)
which means, if I only want turn on this longlines-mode when editing
latex/tex file, then I add the following to .emacs:
(add-hook 'tex-mode-hook 'longlines-mode)
Is that correct?
But it seems not working......
>
> Here's the second way:
> (add-hook 'find-file-hook 'longlines-mode)
> (add-hook 'find-file-not-found-functions 'longlines-mode)
>
> --
> Kevin Rodgers
> Denver, Colorado, USA
next prev parent reply other threads:[~2008-06-04 14:48 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-05-31 1:09 How to go to next line on the screen instead of going to next line in the text? xz
2008-05-31 5:34 ` Giorgos Keramidas
2008-06-03 16:35 ` xz
2008-06-04 13:24 ` Kevin Rodgers
[not found] ` <mailman.12656.1212585897.18990.help-gnu-emacs@gnu.org>
2008-06-04 14:48 ` xz [this message]
2008-06-04 14:53 ` xz
2008-06-05 5:41 ` Kevin Rodgers
[not found] ` <mailman.12677.1212644531.18990.help-gnu-emacs@gnu.org>
2008-06-05 15:05 ` xz
2008-05-31 19:29 ` B. T. Raven
2008-06-02 11:16 ` Sébastien Vauban
-- strict thread matches above, loose matches on Subject: below --
2008-06-02 16:41 How to go to next line on the screen instead of going to, " Lorenzo Isella
[not found] <mailman.12563.1212424885.18990.help-gnu-emacs@gnu.org>
2008-06-03 13:49 ` Sébastien Vauban
[not found] <48456c51.131e640a.2218.2323SMTPIN_ADDED@mx.google.com>
2008-06-03 23:34 ` How to go to next line on the screen instead of going to,, " Lorenzo Isella
[not found] ` <mailman.12640.1212536111.18990.help-gnu-emacs@gnu.org>
2008-06-04 6:42 ` How to go to next line on the screen instead of going to, , " Sébastien Vauban
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=3ed818c4-ad1a-48d9-b2ab-68a6b15afa71@l64g2000hse.googlegroups.com \
--to=zhang.xi.cn@gmail.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.
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).