backward-kill-word deletes too much text:
Now if I press
What I want is:
C-<backspace>, just like how the other editors do.
EDIT: Based on the answer from @gigiair, I'm trying to implement the command sequency in elisp, but I'm getting "Wrong number of arguments" when executing the code:
(defun leo/backward-kill-word () "Better backward-kill-word." (interactive) (set-mark-command) (backward-sexp) (forward-sexp) (backward-delete-char-untabify))
I'm new to elisp, know nothing about.