download component html-helper-mode.el and tempo.el throughhttp://tuvalu.santafe.edu/~nelson/hhm-beta/ , add below info in .emacs
;;html-helper-mode.el
(add-to-list 'load-path "/home/ryu/emacs/site")
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
;; Recognize server-parsed HTML files
(setq auto-mode-alist (cons '("\\.shtml$" . html-helper-mode) auto-mode-alist))
;; Insert a HTML template to new file
(setq html-helper-build-new-buffer t)
;; when you create a new file, then enter below comtent in template file
(setq html-helper-address-string
"<a href=\"your_URL\">your_name <your_e-mail_address></a>")
;; Enable time stamp,put in the date of last modification
(setq html-helper-do-write-file-hooks t)
;; when type C-c C-a l,Enable hyperlink prompt in minibuffer
(setq tempo-interactive t)
pending issue.
(defun my-common-mode-auto-pair ()
(interactive)
(make-local-variable 'skeleton-pair-alist)
(setq skeleton-pair-alist '(
(? ? _ "''")
(? ? _ """")
(? ? _ "()")
(? ? _ "[]")
(?{ \n > _ \n ?} >)))
(setq skeleton-pair t)
(local-set-key (kbd "(") 'skeleton-pair-insert-maybe)
(local-set-key (kbd "\"") 'skeleton-pair-insert-maybe)
(local-set-key (kbd "{") 'skeleton-pair-insert-maybe)
(local-set-key (kbd "\'") 'skeleton-pair-insert-maybe)
(local-set-key (kbd "[") 'skeleton-pair-insert-maybe))
(add-hook 'c-mode-hook 'my-common-mode-auto-pair)
(add-hook 'c++-mode-hook 'my-common-mode-auto-pair)
(add-hook 'java-mode-hook 'my-common-mode-auto-pair)
(add-hook 'lisp-mode-hook 'my-common-mode-auto-pair)
(add-hook 'php-mode-hook 'my-common-mode-auto-pair)
(add-hook 'python-mode-hook 'my-common-mode-auto-pair)
;;(add-hook 'html-mode-hook 'my-common-mode-auto-pair)
;;(add-hook 'html-helper-load-hook 'my-common-mode-auto-pair)
(add-hook 'scheme-mode-hook 'my-common-mode-auto-pair)
(add-hook 'css-mode-hook 'my-common-mode-auto-pair)
(add-hook 'sql-mode-hook 'my-common-mode-auto-pair)
(add-hook 'emacs-lisp-mode-hook 'my-common-mode-auto-pair)
(add-hook 'text-mode-hook 'my-common-mode-auto-pair)
(add-hook 'slime-repl-mode-hook 'my-common-mode-auto-pair)
html-helper-mode won't indent for detail, please refer to http://lists.aquamacs.org/pipermail/aquamacs-devel/2009-September/008609.html
latest maintain :http://www.nongnu.org/baol-hth/
key binding http://www.informatik.uni-hamburg.de/RZ/software/www/html-helper-mode/keybindings.html
yasnippet http://blog.gabrielsaldana.org/make-emacs-yasnippet-work-with-html-helper-mode/
indentation http://www.emacswiki.org/emacs/IndentingHtml