Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7441319
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T10:59:30+00:00 2026-05-29T10:59:30+00:00

I am using centered-cursor-mode in Emacs, and I really like it. It has been

  • 0

I am using centered-cursor-mode in Emacs, and I really like it. It has been bothering me a lot, though, that the position of the cursor is set lower than the center, and I would actually prefer it to be higher than the center.

Every few months I get annoyed enough to try and do something about it, but I have so far been unsuccessful. My impression was that the answer was to change the numbers in this bit

(defcustom ccm-vpos-init '(round (window-text-height) 2)
  "This is the screen line position where the cursor initially stays."
  :group 'centered-cursor
  :tag "Vertical cursor position"
  :type '(choice (const :tag "Center" (round (window-text-height) 2))
                 (const :tag "Golden ratio" (round (* 21 (window-text-height)) 34)) 
                 (integer :tag "Lines from top" :value 10)))
(make-variable-buffer-local 'ccm-vpos-init)

but it doesn’t seem like it.

Does anyone know how to change the centering position of the cursor in “centered-cursor-mode.el”?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T10:59:31+00:00Added an answer on May 29, 2026 at 10:59 am

    You can adjust the line position in the current buffer with M-C-+ and M-C--. The prefix argument specifies how many lines you want to move the cursor, so e.g. if you want to have the cursor two lines higher, you would type:

    C-u 2 C-M-+

    For a more permanent solution, you can also customize the entry of the “Vertical cursor position” (aka ccm-vpos-init) as your question already suggests. Accessing that entry via M-x customize-group RET centered-cursor RET you’ll find three basic options:

    • Centered (default)
    • Golden ratio
    • Lines from the top

    IMHO the third option only makes sense if you always use the exact same window size (so horizontal split windows will be a problem) while the second point could perhaps be an option for you?

    However, you can very easily add a forth option to the definition of ccm-vpos-init that allows you to position the cursor exactly where you want it, for instance:

    (defcustom ccm-vpos-init '(round (window-text-height) 2)
      "This is the screen line position where the cursor initially stays."
      :group 'centered-cursor
      :tag "Vertical cursor position"
      :type '(choice (const :tag "Center" (round (window-text-height) 2))
                     (const :tag "Golden ratio" (round (* 21 (window-text-height)) 34))
                     (integer :tag "Lines from top" :value 10)
                     (const :tag "2 Lines above center" (- (round (window-text-height) 2) 2))))
    

    The next time you start Emacs, this forth option will be available in the “Vertical cursor position” entry described above.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using JQuery UI and would like to position my dialog horizontally centered
I built a div that has horizontal centered text using a table and vertical-align:
Using C#, I need a class called User that has a username, password, active
I have a divider that is centered in the page using margin:auto . Inside
Really banging my head with this. I am using isotope http://isotope.metafizzy.co/custom-layout-modes/centered-masonry.html . I have
I need to align text using li in a centered table so that the
I have a page that is centered within the browser using the following code:
Using ASP.NET MVC there are situations (such as form submission) that may require a
Using TortoiseSVN against VisualSVN I delete a source file that I should not have
Using JDeveloper , I started developing a set of web pages for a project

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.