Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ctrl+L in emacs runs recenter-top-bottom which centers the buffer with the current line appearing in the middle.

IntelliJ has an emacs keymap, but it doesn't have Ctrl+L. How do I configure it to have a similar functionality?

share|improve this question
up vote 4 down vote accepted

Intellij has "Scroll to Center" bound to Ctrl-M.

Add the Ctrl-L binding in the keymap by going into "Settings | Keymap", choose "Emacs" or make a copy of the default keymap, find the current binding by entering "Scroll to Center" in the search box, double click on the line where the binding is defined, select "Add Keyboard Shortcut", type Ctrl-L key sequence in the "First Stroke" text field and click OK.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .