This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; joins two consecutives lines like vim's "J" | |
(defun join-lines () | |
(interactive) | |
(save-excursion | |
(end-of-line) | |
(insert-char ? 1) | |
(delete-char 1) | |
(while (looking-at "\\s +") | |
(delete-char 1)))) |
NewerOlder