0

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 Apr 17 at 9:27
1

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 :after advice to org-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.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.