Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.