summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrekado <rekado@elephly.net>2015-01-24 12:46:44 +0100
committerrekado <rekado@elephly.net>2015-01-24 12:46:44 +0100
commitcbb0997470e153d4009ed7db6d175e055d1f6055 (patch)
tree22b36250bcbeedbc6070802b77136ee93c49322c
parentc314052e975614fb9288950ece45b80c0340235d (diff)
add function to double-space sentences
-rw-r--r--lisp/init-my-stuff.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/init-my-stuff.el b/lisp/init-my-stuff.el
index 9a1bf2d..e42f4bc 100644
--- a/lisp/init-my-stuff.el
+++ b/lisp/init-my-stuff.el
@@ -85,3 +85,11 @@ Position the cursor at its beginning, according to the current mode."
(abort-recursive-edit)))
(add-hook 'mouse-leave-buffer-hook 'my/stop-using-minibuffer)
+
+(defun my/fix-sentence (arg)
+ "Add space to the end of a sentence."
+ (interactive "p")
+ (let ((sentence-end-double-space nil))
+ (loop for i from 1 to arg do
+ (forward-sentence 1)
+ (insert " "))))