Fuco1 / smartparens

Minor mode for Emacs that deals with parens pairs and tries to be smart about it.
GNU General Public License v3.0
1.82k stars 195 forks source link

Add sp-handle-enter.el #1121

Closed semenInRussia closed 2 years ago

semenInRussia commented 2 years ago

Add file sp-handle-enter.el. This file handle of Enter for Smartparens.

By default this able has only Clang, but this file add handling of Enter to all modes (which need to this).

Super Big thank you for this super useful package!!!!!

List of My Valid Actions

Examples

All Modes without Haskell

function hiFromRussia(arg) {|}

Press Enter:

function hiFromRussia(arg) {
    |
}

For Haskell

type Locator a = {|}

Press Enter

type Locator a = {|
                 }

This is standard of formating for `Haskell``

semenInRussia commented 2 years ago

Sorry for my code!