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:53:04 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <871w3j3ul8.fsf@kobe.laptop> <0a9bfa85-9062-47db-9c28-d7f6933a72f2@e53g2000hsa.googlegroups.com> <3ed818c4-ad1a-48d9-b2ab-68a6b15afa71@l64g2000hse.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1212594160 11292 80.91.229.12 (4 Jun 2008 15:42:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 4 Jun 2008 15:42:40 +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:43:13 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 1K3v8q-00073o-EE for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 17:43:12 +0200 Original-Received: from localhost ([127.0.0.1]:43729 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K3v83-0007mN-O3 for geh-help-gnu-emacs@m.gmane.org; Wed, 04 Jun 2008 11:42:23 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!m73g2000hsh.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 26 Original-NNTP-Posting-Host: 168.7.13.133 Original-X-Trace: posting.google.com 1212591184 16975 127.0.0.1 (4 Jun 2008 14:53:04 GMT) Original-X-Complaints-To: groups-abuse@google.com Original-NNTP-Posting-Date: Wed, 4 Jun 2008 14:53:04 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: m73g2000hsh.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:159106 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:54456 Archived-At: ~~~ > 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...... > I mean it works when I add (add-hook 'text-mode-hook 'longlines-mode) while it does work if I only add (add-hook 'tex-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