From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: xz Newsgroups: gmane.emacs.help 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) Organization: http://groups.google.com Message-ID: <3ed818c4-ad1a-48d9-b2ab-68a6b15afa71@l64g2000hse.googlegroups.com> References: <871w3j3ul8.fsf@kobe.laptop> <0a9bfa85-9062-47db-9c28-d7f6933a72f2@e53g2000hsa.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212594118 11137 80.91.229.12 (4 Jun 2008 15:41:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 15:41:58 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 04 17:42:40 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1K3v8B-0006mI-Dv for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 17:42:31 +0200 Original-Received: from localhost ([127.0.0.1]:43324 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3v7O-0007RR-Lw for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 11:41:42 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!l64g2000hse.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 39 Original-NNTP-Posting-Host: 168.7.13.133 Original-X-Trace: posting.google.com 1212590926 8225 127.0.0.1 (4 Jun 2008 14:48:46 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 4 Jun 2008 14:48:46 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l64g2000hse.googlegroups.com; posting-host=168.7.13.133; posting-account=fxB97woAAABg6Wi3tmJV7LZi5ZS_5kQW User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9b5) Gecko/2008050509 Firefox/3.0b5,gzip(gfe),gzip(gfe) Original-Xref: news.stanford.edu gnu.emacs.help:159105 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:54455 Archived-At: On Jun 4, 8:24=A0am, Kevin Rodgers wrote: > xz wrote: > > On May 31, 12:34 am, Giorgos Keramidas > > wrote: > >> Check out `longlines-mode'. =A0I 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. =A0So 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