A simple package to enable intellij like backspace in Emacs.
smart-backspace
delete white spaces to previous line indentation.
class Some {
|void someFunc() {
↑ carret here
}
}
↓ press smart-backspace
command once
class Some {
|void someFunc() {
}
}
↓ press smart-backspace
command again
class Some {
|void someFunc() {
}
}
package can be available in melpa. just M-x
package-install
smart-backspace
and bind smart-backspace
(require 'smart-backspace)
(global-set-key [?\C-?] 'smart-backspace)
(require 'smart-backspace)
(define-key evil-insert-state-map [?\C-?] 'smart-backspace)