Skip to content
vic

itome/smart-backspace

A simple package to enable intellij like backspace in Emacs.

itome/smart-backspace.json
{
"createdAt": "2017-10-12T04:08:31Z",
"defaultBranch": "master",
"description": "A simple package to enable intellij like backspace in Emacs.",
"fullName": "itome/smart-backspace",
"homepage": "",
"language": "Emacs Lisp",
"name": "smart-backspace",
"pushedAt": "2017-10-14T12:58:50Z",
"stargazersCount": 11,
"topics": [],
"updatedAt": "2024-08-26T07:02:51Z",
"url": "https://github.com/itome/smart-backspace"
}

MELPA Emacs

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)