[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: What's the hook that's about cursor movement?
From: |
Phillip Lord |
Subject: |
Re: What's the hook that's about cursor movement? |
Date: |
Fri, 29 Apr 2016 12:16:23 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) |
Shiyao Ma <i@introo.me> writes:
> Hi,
>
> I want to add a function to a hook to achieve effect that, whenever the
> cursors moves by K lines, or goes to another buffer, then center the cursor
> on the screen.
>
>
> So, what's the related hook?
I'm not sure that there is one directly -- post-command-hook is called
after any command, though which covers all of the things that you have
mentioned (but also others).
Phil