Hitting C-d (org-delete-char) in an Emacs org file deletes the word following the cursor. I would like to delete the extra space left also without having to use DEL. I.e. one action to delete word and extra space.
- documentation says, as function name suggests, that it deletes chars and insert spaces only in tables fields to keep the cells aligned.Muihlinn– Muihlinn2020-04-17 09:27:03 +00:00Commented Apr 17, 2020 at 9:27
Add a comment |
1 Answer
Despite that's not the documented behavior for org-delete-char which deletes only chars and no words adding spaces only inside table cells, you could achieve what you want doing either:
- defining a command which kills the next character if matchs
[:space:]and rebinding it to C-d - Adding
:afteradvice toorg-delete-char(vid. advising functions)
Looking org-delete-char implementation, taking a simplistic approach of just deleting the next blank character doesn't look like a good idea.