summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAmin Bandali <bandali@gnu.org>2020-04-18 02:45:01 -0400
committerAmin Bandali <bandali@gnu.org>2020-04-18 02:45:01 -0400
commite5c2d14707040e9fab4ce5a5c8e2e64d7aa4f5c1 (patch)
tree7a2c941ba2a8c670af012199d9642b5c8785e798
parent3d7cc479c6dcc9550b9f03176272f5a9c4655b4c (diff)
downloadconfigs-e5c2d14707040e9fab4ce5a5c8e2e64d7aa4f5c1.tar.gz
configs-e5c2d14707040e9fab4ce5a5c8e2e64d7aa4f5c1.tar.xz
configs-e5c2d14707040e9fab4ce5a5c8e2e64d7aa4f5c1.zip
* init.el: Add b/join-line-top for joining the next line to this one
Diffstat (limited to '')
-rw-r--r--init.el7
1 files changed, 7 insertions, 0 deletions
diff --git a/init.el b/init.el
index 01ee10a..fde1428 100644
--- a/init.el
+++ b/init.el
@@ -250,6 +250,11 @@ For disabling the behaviour for certain buffers and/or modes."
(point)))
(move-beginning-of-line arg)))
+(defun b/join-line-top ()
+ "Like `join-line', but join next line to the current line."
+ (interactive)
+ (join-line 1))
+
;;; Defaults
@@ -523,6 +528,8 @@ For disabling the behaviour for certain buffers and/or modes."
("C-S-h C" . describe-char)
("C-S-h F" . describe-face)
+ ("C-S-j" . b/join-line-top)
+
("C-c x" . execute-extended-command)
("C-x k" . b/kill-current-buffer)