Add new command prelude-top-join-line

Saner version of the built-in `join-line`, that joins lines from the top
to the bottom.
This commit is contained in:
Bozhidar Batsov 2013-05-30 16:50:55 +03:00
parent d01818207c
commit 4d15923e2c
3 changed files with 7 additions and 2 deletions

View file

@ -97,6 +97,11 @@ Position the cursor at its beginning, according to the current mode."
(move-end-of-line nil)
(newline-and-indent))
(defun prelude-top-join-line ()
"Join the current line with the line beneath it."
(interactive)
(delete-indentation 1))
(defun prelude-move-line-up ()
"Move the current line up."
(interactive)

View file

@ -45,7 +45,7 @@
(other-window -1))) ;; back one
;; Indentation help
(global-set-key (kbd "C-x ^") 'join-line)
(global-set-key (kbd "M-^") 'prelude-top-join-line)
;; Start proced in a similar manner to dired
(global-set-key (kbd "C-x p") 'proced)