From b11adad984e8160e366d7e154d12c378a9545b9a Mon Sep 17 00:00:00 2001 From: Case Duckworth Date: Mon, 13 Dec 2021 10:29:50 -0600 Subject: Lots of changes, most interestingly browse-url stuff --- lisp/+util.el | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lisp/+util.el') diff --git a/lisp/+util.el b/lisp/+util.el index 0184a48..fb77278 100644 --- a/lisp/+util.el +++ b/lisp/+util.el @@ -79,6 +79,14 @@ ALIGNMENT can be one of these: ;;; COMMANDS +(defun +dos2unix (buffer) + "Replace \r\n with \n in BUFFER." + (interactive "*b") + (save-excursion + (with-current-buffer buffer + (goto-char (point-min)) + (while (search-forward (string ?\C-m ?\C-j) nil t) + (replace-match (string ?\C-j) nil t))))) (provide '+util) ;;; +util.el ends here -- cgit 1.4.1-21-gabe81