all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Ph. Ivaldi <piv_pasde@pub_tele2.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: How to scroll while keeping the position of the point with respect to the text?
Date: Wed, 05 Sep 2007 22:38:53 +0200	[thread overview]
Message-ID: <878x7konj6.fsf@tele2.fr> (raw)
In-Reply-To: 1189019337.916627.259710@57g2000hsv.googlegroups.com

Hello,

You tried scroll-in-place ?
 http://www.cs.utah.edu/~eeide/emacs/

In .emacs:
8<------8<------8<------8<------8<------8<------8<------8<------8<------
;; -------------------
;; * scroll-in-place *
;; scroll-in-place is a package that keeps the cursor on the same line
;; (and in the same column) when scrolling by a page using PgUp/PgDn.
(require 'scroll-in-place)
(defun scroll-move-up ()
  "* Scroll up without scroll-in-place."
  (interactive)
  (let ((scroll-in-place nil))
    (scroll-up 1)))
(defun scroll-move-down ()
  "* Scroll down without scroll-in-place."
  (interactive)
  (let ((scroll-in-place nil))
    (scroll-up -1)))
(global-set-key (kbd "<C-M-up>") 'scroll-move-up)
(global-set-key (kbd "<C-M-down>") 'scroll-move-down)

;; ----------------------------------
;; * naviguer dans une ligne longue *
;; C-up et C-down pour naviguer dans une ligne longue.
;; En plus le curseur reste immobile (en fait c'est un scroll!).
(defun move-one-up ()
  (interactive)
  (scroll-up 1))
(defun move-one-down ()
  (interactive)
  (scroll-up -1))
(global-set-key (kbd "<C-up>") 'move-one-down)
(global-set-key (kbd "<C-down>") 'move-one-up)
8<------8<------8<------8<------8<------8<------8<------8<------8<------

-- 
Regards,
   Philippe Ivaldi.
http://piprim.tuxfamily.org/

  parent reply	other threads:[~2007-09-05 20:38 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-09-05 19:08 How to scroll while keeping the position of the point with respect to the text? Yevgeniy Makarov
2007-09-05 19:33 ` Ekkehard Görlach
2007-09-05 19:49   ` Yevgeniy Makarov
2007-09-05 20:38 ` Ph. Ivaldi [this message]
2007-09-05 21:42 ` Peter Dyballa
2007-09-06 11:34   ` Yevgeniy Makarov

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=878x7konj6.fsf@tele2.fr \
    --to=piv_pasde@pub_tele2.fr \
    --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.