Advertisement
peteresalazar

Untitled

Jul 13th, 2015
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lisp 0.38 KB | None | 0 0
  1. (defadvice capitalize-word (after capitalize-word-advice activate)
  2. "
  3.  (unless
  4. (or
  5. (looking-at " I\\b") ; don't downcase "I"
  6. (looking-at (sentence-end))
  7. (looking at (line-end)); doesn't work, but I don't think \n would work either
  8. (looking-at (user-full-name)) ; my name is a commonly occurring proper noun that should be immune to being downcased
  9. )
  10.    (downcase-word 1)))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement