Emacs: Replace own unfill-paragraph and unfill-region with package 'unfill'.

master
Pierre Neidhardt 2019-11-02 15:12:34 +01:00
parent 73e729ca1c
commit d81b9f4e1b
1 changed files with 1 additions and 13 deletions

View File

@ -190,6 +190,7 @@ If DIR-LEFT is t, then move left, otherwise move right."
(defun ambrevar/reset-fill-column ()
"Reset `fill-column' to its default value."
(interactive)
(setq fill-column (default-value 'fill-column)))
(defun ambrevar/sort-lines-unique (arg)
@ -369,19 +370,6 @@ This does not interfere with `subword-mode'."
(modify-syntax-entry ?_ "_")
(message "_ is a word delimiter")))
(defun ambrevar/unfill-paragraph ()
"Paragraph at point is unwrapped on one single line."
(interactive)
(let ((fill-column (point-max)))
(fill-paragraph nil)))
(defun ambrevar/unfill-region ()
"Unfill all paragraphs found in current region.
Each paragraph stand on its line."
(interactive)
(let ((fill-column (point-max)))
(fill-region (region-beginning) (region-end) nil)))
(defun ambrevar/youtube-dl-url (&optional url)
"Run 'youtube-dl' over the URL.
If URL is nil, use URL at point."