Create function org-space-key and bind it to SPC in org-mode

All it does is inserting the space character twice after a period.
This commit is contained in:
2016-10-21 23:02:22 +02:00
parent 4a949cc025
commit 5ef2a98858
2 changed files with 13 additions and 1 deletions

7
lisp/text-manip.el Normal file
View File

@@ -0,0 +1,7 @@
(defun org-space-key (&optional arg)
"Insert two spaces after a period."
(interactive "p")
(when (looking-back "\\.")
(call-interactively 'self-insert-command arg))
(call-interactively 'self-insert-command arg))