From: "Lorenzo Isella" <lorenzo.isella@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: How do you scroll the screen without moving the cursor ?
Date: Wed, 8 Oct 2008 18:19:06 +0200 [thread overview]
Message-ID: <a2b3004b0810080919n52a86811jf98537e5dcc28510@mail.gmail.com> (raw)
> aww cool thanks... i just tried the stuffs
>
> this is what i ended up with ->
>
> ;; ^E in Vi
> (defun ctrl-e-in-vi (n)
> (interactive "p")
> (scroll-down n))
>
> ;; ^Y in Vi
> (defun ctrl-y-in-vi (n)
> (interactive "p")
> (scroll-up n))
>
> (global-set-key "\M-n" 'ctrl-y-in-vi)
> (global-set-key "\M-p" 'ctrl-e-in-vi)
Hello,
Sorry for jumping into this thread. I tried the functions above in my
.emacs file (the only trivial difference is that I keybound them to f1
and f2).
They work beautifully with e.g. python, Fortran etc.. codes, but not
with .tex files (where I use latex).
In that case, the cursor moves when I invoke one of the functions above.
How comes? I am not redefining any key-binding involving my f1 and f2 there.
If needed, I can post the part of my .emacs file dealing with the
customization of auctex, but I am not sure the problem lies there.
Any suggestions?
Cheers
Lorenzo
next reply other threads:[~2008-10-08 16:19 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-10-08 16:19 Lorenzo Isella [this message]
[not found] <mailman.578.1223482753.25473.help-gnu-emacs@gnu.org>
2008-10-08 17:07 ` How do you scroll the screen without moving the cursor ? Xah
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a2b3004b0810080919n52a86811jf98537e5dcc28510@mail.gmail.com \
--to=lorenzo.isella@gmail.com \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).