summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2014-03-21 00:27:04 -0400
committerKyle Meyer <kyle@kyleam.com>2014-03-21 00:27:04 -0400
commit73aae0f268e6ae6c7292da615c631271093188b3 (patch)
tree60560db8ba7e1cc1d5de4820407dbf578468d1f2 /lisp
parent736679834f182d369bd37a16efbc6bd0024d6f0c (diff)
downloademacs.d-73aae0f268e6ae6c7292da615c631271093188b3.tar.gz
Simplify km/join-next-line-with-space
Diffstat (limited to 'lisp')
-rw-r--r--lisp/init-editing.el5
1 files changed, 2 insertions, 3 deletions
diff --git a/lisp/init-editing.el b/lisp/init-editing.el
index 5b0bcd8..74dd712 100644
--- a/lisp/init-editing.el
+++ b/lisp/init-editing.el
@@ -153,12 +153,11 @@
(define-key kill-map "p" 'km/kill-paragraph-at-point)
(define-key kill-map "l" 'km/kill-line-at-point)
+;; Taken from prelude-core.el.
(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))
+ (delete-indentation 1))
(define-key kill-map "j" 'km/join-next-line-with-space)