Permalink
Browse files

Added xmltidy-buffer.

  • Loading branch information...
John MacFarlane
John MacFarlane committed Jan 20, 2012
1 parent c119b5f commit 97ae410fe2b184b489e0ce66640caf7be727e471
Showing with 8 additions and 0 deletions.
  1. +8 −0 init.el
View
@@ -271,6 +271,14 @@
(require 'magit)
(global-set-key "\C-cg" 'magit-status)
+;;; tidy xml buffer
+(defun xml-tidy-buffer ()
+ (interactive)
+ (shell-command-on-region (point-min) (point-max)
+ "tidy -q -xml -utf8 -i" t t)
+ (keyboard-quit))
+
;; keep customizations in another file
(setq custom-file "~/.emacs.d/.emacs-custom.el")
(load custom-file 'noerror)
+

0 comments on commit 97ae410

Please sign in to comment.