all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
[parent not found: <mailman.12563.1212424885.18990.help-gnu-emacs@gnu.org>]
* Re: How to go to next line on the screen instead of going to, next line in the text?
@ 2008-06-02 16:41 Lorenzo Isella
  0 siblings, 0 replies; 14+ messages in thread
From: Lorenzo Isella @ 2008-06-02 16:41 UTC (permalink / raw)
  To: zthjwsqqafhv; +Cc: help-gnu-emacs

Message: 4
Date: Mon, 02 Jun 2008 13:16:02 +0200
From: S?bastien Vauban <zthjwsqqafhv@spammotel.com>
Subject: Re: How to go to next line on the screen instead of going to
	next	line in the text?
To: help-gnu-emacs@gnu.org
Message-ID: <87k5h8ytn1.fsf@mundaneum.com>
Content-Type: text/plain; charset=utf-8

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

-- Sébastien Vauban


Hello Sebastien,
I tried out your suggestion (I basically cut and pasted your small code 
into my .emacs file), but there must be something that emacs does not like.
First of all, was I supposed to simply introduce those lines in my 
.emacs file? Any position in the emacs file can do?
I installed  emacs 22.1 with gtk from the standard Debian testing 
repositories and I have my own .emacs file for some simple 
customization. In the following, I report the error message returned by 
emacs.
Cheers

Lorenzo


("emacs22-gtk")
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/20apel.el (source)...done
Loading /etc/emacs22/site-start.d/50auctex.el (source)...
Loading /usr/share/emacs/22.2/site-lisp/auctex.el (source)...
Loading /usr/share/emacs/22.2/site-lisp/tex-site.el (source)...done
Loading /usr/share/emacs/22.2/site-lisp/auctex.el (source)...done
Loading /usr/share/emacs/22.2/site-lisp/preview-latex.el (source)...done
Loading /etc/emacs22/site-start.d/50auctex.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el 
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el 
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50emacs-goodies-el.el (source)...done
Loading /etc/emacs/site-start.d/50ess.el (source)...
Loading regexp-opt...done
Loading /etc/emacs/site-start.d/50ess.el (source)...done
Loading /etc/emacs/site-start.d/50flim.el (source)...done
Loading /etc/emacs/site-start.d/50maxima-emacs.el (source)...done
Loading /etc/emacs/site-start.d/50noweb.el (source)...done
Loading /etc/emacs/site-start.d/50nowebm.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50pymacs.el (source)...done
Loading /etc/emacs/site-start.d/50python-mode.el (source)...done
Loading /etc/emacs/site-start.d/50slime.el (source)...
Loading /usr/share/emacs22/site-lisp/slime/slime-autoloads...done
Loading /etc/emacs/site-start.d/50slime.el (source)...done
Loading /etc/emacs/site-start.d/50w3m-el.el (source)...done
Loading /etc/emacs/site-start.d/60cltl.el (source)...done
Loading advice...done
Loading paren...done
Loading time...done
Loading delsel...done


An error has occurred while loading `/home/iselllo/.emacs':

File error: Cannot open load file, screen-lines

To ensure normal operation, you should investigate and remove the
cause of the error in your initialization file.  Start Emacs with
the `--debug-init' option to view a complete error backtrace.

For information about GNU Emacs and the GNU system, type C-h C-a.





^ permalink raw reply	[flat|nested] 14+ messages in thread
* How to go to next line on the screen instead of going to next line in the text?
@ 2008-05-31  1:09 xz
  2008-05-31  5:34 ` Giorgos Keramidas
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: xz @ 2008-05-31  1:09 UTC (permalink / raw)
  To: help-gnu-emacs

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, just like what happens when you hit the down arrow key
in gedit or the notepad in Windows.

How to do that?


^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2008-06-05 15:05 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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,, next line in the text? 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
     [not found] <mailman.12563.1212424885.18990.help-gnu-emacs@gnu.org>
2008-06-03 13:49 ` How to go to next line on the screen instead of going to, " Sébastien Vauban
2008-06-02 16:41 Lorenzo Isella
  -- strict thread matches above, loose matches on Subject: below --
2008-05-31  1:09 How to go to next line on the screen instead of going to " 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
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

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.