From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?S=C3=A9bastien_Vauban?= 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: Mon, 02 Jun 2008 13:16:02 +0200 Organization: Sebastien Vauban Message-ID: <87k5h8ytn1.fsf@mundaneum.com> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1212406862 13927 80.91.229.12 (2 Jun 2008 11:41:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 2 Jun 2008 11:41:02 +0000 (UTC) To: help-gnu-emacs-mXXj517/zsQ@public.gmane.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Mon Jun 02 13:41:44 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 1K38Ph-00067R-Nm for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 13:41:21 +0200 Original-Received: from localhost ([127.0.0.1]:41968 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K38Ov-00064a-GD for geh-help-gnu-emacs@m.gmane.org; Mon, 02 Jun 2008 07:40:33 -0400 Original-Path: news.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!proxad.net!feeder1-2.proxad.net!nerim.net!feed1.news.be.easynet.net!reader0.news.be.easynet.net!not-for-mail Original-Newsgroups: gnu.emacs.help X-Www-site: Under construction... X-Archive: encrypt User-Agent: Gnus/5.110009 (No Gnus v0.9) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:aw5mD/EV83myQOo4OSyF6/h66QU= Original-Lines: 31 Original-NNTP-Posting-Date: 02 Jun 2008 11:16:03 GMT Original-NNTP-Posting-Host: 81.188.7.152 Original-X-Trace: 1212405363 reader0.news.be.easynet.net 1604 [::ffff:81.188.7.152]:18807 Original-X-Complaints-To: abuse-sq41lydJq48WI+UwmH2aBQ@public.gmane.org Original-Xref: news.stanford.edu gnu.emacs.help:159063 X-BeenThere: help-gnu-emacs-mXXj517/zsQ@public.gmane.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-mXXj517/zsQ@public.gmane.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org-mXXj517/zsQ@public.gmane.org Xref: news.gmane.org gmane.emacs.help:54423 Archived-At: Hi, > In emacs, if you hit the down arrow key, the cursor will go to next > line in the text, i.e., the part after the first next '\n'. > > However, sometimes when the line is long and is wrapped into several > lines on the screen, I wanna move between the screen lines, instead of > the text lines. > > How to do that? --8<---------------cut here---------------start------------->8--- ;; point motion by screen lines (as opposed to text lines) ;; TODO screen lines mode enabled by default for all buffers (when (require 'screen-lines) ;; following lines commented out for keeping the original `kill-line' ;; in `screen-lines' minor mode (add-hook 'screen-lines-load-hook (lambda () (ad-disable-advice 'kill-line 'around 'screen-lines) (ad-activate 'kill-line))) ;; nothing should appear in the mode line, when the `screen-lines' mode ;; is enabled in a buffer (setq screen-lines-minor-mode-string "")) --8<---------------cut here---------------end--------------->8--- Seb --=20 S=C3=A9bastien=C2=A0Vauban