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.
This file contains invisible Unicode characters that may be processed differently from what appears below. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to reveal hidden characters.
This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.
( defun org-format ( )
( interactive )
( goto-char ( point-min ) )
( while ( re-search-forward " - " nil t )
( replace-match " – " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " – " nil t )
( replace-match " – " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " / – " nil t )
( replace-match " – /" ) )
( goto-char ( point-min ) )
( while ( re-search-forward " \\ . \\ . \\ . " nil t )
( replace-match " … " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " … " nil t )
( replace-match " … " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " ' " nil t )
( replace-match " ’ " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " \n " nil t )
( replace-match " \n " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " \n \" " nil t )
( replace-match " \n “ " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " \" " nil t )
( replace-match " “ " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " \" " nil t )
( replace-match " ” " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " “/ " nil t )
( replace-match " /“ " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " /” " nil t )
( replace-match " ”/ " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " =” " nil t )
( replace-match " = \" " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " ”> " nil t )
( replace-match " \" > " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " ”/> " nil t )
( replace-match " \" /> " ) )
( goto-char ( point-min ) )
( while ( re-search-forward " = \" \\ ([^>]* \\ )” " nil t )
( replace-match " = \" \\ 1 \" " ) ) )