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.

1
  • documentation says, as function name suggests, that it deletes chars and insert spaces only in tables fields to keep the cells aligned. Commented Apr 17, 2020 at 9:27

1 Answer 1

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.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.