;; insert-htmltag (defun insert-htmltag (str) "Insert a pair of HTML tags. Insert a pair of HTML tags read from mini buffer at the cursor point." (interactive "sInput tag: ") (let ((elm (car (split-string str)))) (if (stringp elm) (progn (insert "<"str"></"elm">") (forward-char (- (+ 3 (length elm))))))))