;; -*- coding: utf-8 -*- ;; part of Xah Lee's emacs init file. ;; 2007-06, 2011-01-24 ;; Xah Lee, ;; ∑ http://xahlee.org/ ;; some functions personal to working on XahLee.org's website ;; many of these opens a particular file and insert a string ;; § ---------------------------------------- ;; xwe = xah wordy english ;; 〈Wordy English — the Making of Belles-Lettres〉 ;; http://xahlee.org/PageTwo_dir/Vocabulary_dir/vocabulary.html (defun xwe-new-word-entry () "Insert a blank a-word-a-day html template in a paritcular file." (interactive) (find-file "~/web/xahlee_org/PageTwo_dir/Vocabulary_dir/new.html") (goto-char (point-min)) (re-search-forward "wordy-english.blogspot.com.
\n\n" nil t) (xwe-insert-word-entry) ) (defun xwe-insert-word-entry () "Insert a blank a-word-a-day html template." (interactive) (insert "\n") (insert "") (setq p1 (point)) (search-forward "
") (backward-char 4) (setq p2 (point)) (setq wd (buffer-substring-no-properties p1 p2)) ;; grab the example text (search-forward "