all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Kevin Rodgers <kevin.d.rodgers@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, 04 Jun 2008 07:24:42 -0600	[thread overview]
Message-ID: <g2652g$991$1@ger.gmane.org> (raw)
In-Reply-To: <0a9bfa85-9062-47db-9c28-d7f6933a72f2@e53g2000hsa.googlegroups.com>

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)

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





  reply	other threads:[~2008-06-04 13:24 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 [this message]
     [not found]     ` <mailman.12656.1212585897.18990.help-gnu-emacs@gnu.org>
2008-06-04 14:48       ` xz
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

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

  git send-email \
    --in-reply-to='g2652g$991$1@ger.gmane.org' \
    --to=kevin.d.rodgers@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.
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.