Skip to content
Snippets Groups Projects
Commit ea963c0e authored by Philippe Dosch's avatar Philippe Dosch
Browse files

Add cite-mail-part function

parent b557cfed
No related branches found
No related tags found
No related merge requests found
......@@ -1113,6 +1113,19 @@ For the middle line, remove all characters after the prefix and insert '[snip]'
(forward-line 1))))
(global-set-key (kbd "M-s s") 'snip-lines-mail)
(defun cite-mail-part ()
"Prefix each line in the region with '> '."
(interactive)
(save-excursion
(let ((begin (region-beginning))
(end (region-end)))
(goto-char begin)
(while (< (point) end)
(beginning-of-line)
(insert "> ")
(forward-line 1)))))
(global-set-key (kbd "M-s t") 'cite-mail-part)
;;; .emacs ends here
(provide '.emacs)
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment