summaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorKyle Meyer <meyerkya@gmail.com>2013-07-16 13:42:58 -0400
committerKyle Meyer <meyerkya@gmail.com>2013-07-16 13:47:30 -0400
commitc9ceb35a27ce0e9dac94cfd67d243aa136a6c96c (patch)
tree4dad7fcfeb2fe1e4e6a268a54c9bccc93b74f013 /init
parent0c1e4a3e1f51e5850afd0a43427e2f92399b275f (diff)
downloademacs.d-c9ceb35a27ce0e9dac94cfd67d243aa136a6c96c.tar.gz
function to join to next line with one space
Diffstat (limited to 'init')
-rw-r--r--init/km-func.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/init/km-func.el b/init/km-func.el
index 5c36208..66f8187 100644
--- a/init/km-func.el
+++ b/init/km-func.el
@@ -113,3 +113,12 @@ KILLARG."
(global-set-key (kbd "C-c k w") 'km/kill-word-at-point)
(global-set-key (kbd "C-c k p") 'km/kill-paragraph-at-point)
(global-set-key (kbd "C-c k l") 'km/kill-line-at-point)
+
+(defun km/join-next-line-with-space ()
+ "Join current line to the next line with a space in between"
+ (interactive)
+ (move-end-of-line 1)
+ (kill-line)
+ (just-one-space))
+
+(global-set-key (kbd "C-c k j") 'km/join-next-line-with-space)