andre-r / centered-cursor-mode.el

An emacs minor mode for smooth scrolling
GNU General Public License v2.0
60 stars 12 forks source link

Lock current cursor position #13

Open bronger opened 3 years ago

bronger commented 3 years ago

Is it possible to use the current vertical cursor position as the locked position when entering centered-cursor-mode?

andre-r commented 3 years ago

What do you have in mind? Setting it right after clicking or setting it manually? Or even customize the position as default position?

bronger commented 3 years ago

I meant, just for this session. If you need for some reason more lines beneath the cursor, you can set this ad-hoc by simply posing the cursor at the proper vertical position on the screen and active centered-cursor-mode to lock that position for that buffer – until the mode is deactivated again.