[Re]Mapping the Enter Key


#1

I would like to remap the enter key to insert a “new line above” instead of the insert “new line below” default.
Is this possible and if so, what is the simplest method for accomplishing this?
I haven’t found any suggestions in any posts or online help.
thx


#2

Hey,

You can open your keymap.cson from the File menu, File -> Keymap.... In there you can enter the following binding to map the enter key to insert new line above. You can read more about keymaps in the Atom flight manual

'atom-text-editor:not([mini])':
  'enter': 'editor:newline-above'

#3

Ben3eeE
I will try that, thanks.
Bob