You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
750 B
EmacsLisp

(defun org-format ()
(interactive)
(goto-char (region-beginning))
(while (re-search-forward " -" nil t)
(replace-match " "))
(goto-char (region-beginning))
(while (re-search-forward "'" nil t)
(replace-match ""))
(goto-char (region-beginning))
2 years ago
(while (re-search-forward "\n\"" nil t)
(replace-match "\n"))
(goto-char (region-beginning))
(while (re-search-forward " \"" nil t)
(replace-match ""))
(goto-char (region-beginning))
(while (re-search-forward "\"" nil t)
2 years ago
(replace-match ""))
(goto-char (region-beginning))
(while (re-search-forward "“/" nil t)
(replace-match "/“"))
(goto-char (region-beginning))
(while (re-search-forward "/”" nil t)
(replace-match "”/")))