Skip to content

Instantly share code, notes, and snippets.

@vagmi
Created November 18, 2008 16:07
Show Gist options
  • Save vagmi/26161 to your computer and use it in GitHub Desktop.
Save vagmi/26161 to your computer and use it in GitHub Desktop.
(add-hook 'html-helper-mode-hook
(lambda ()
(defun tidy-html ()
(interactive)
(save-excursion
(call-process-region (point-min) (point-max)
"c:\\tools\\tidy.exe" t '(t nil) nil "-i" "-asxml")))
(define-key html-helper-mode-map [f7] 'tidy-html)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment