News for hackers. Stuff that matters.
Re:Erik Naggum on Emacs and muscle memory by tincholio on Thursday June 23, 2011 @07:46AM (#2687499)
For Emacs users:

(defun capitalize-naggum () "Capitalizes text written in Erik Naggum's annoying no-caps style" (interactive) (save-excursion (goto-char (point-min)) (aux-naggum (point))))

(defun aux-naggum (current-point) "Recursively capitalize the buffer, moving sentence to sentence. Valid punctuation symbols are [.?!]" (re-search-forward "[a-z]" nil 0 nil) (if (= current-point (point)) t (capitalize-word -1) (re-search-forward "[.!?]") (aux-naggum (point))))

There are no comments on this comment yet.