Skip to content

Instantly share code, notes, and snippets.

@faried
Created February 9, 2011 11:32
Show Gist options
  • Save faried/818341 to your computer and use it in GitHub Desktop.
Save faried/818341 to your computer and use it in GitHub Desktop.
;; example function to call
(defun underline-char (char-point)
(add-text-properties char-point (1+ char-point)
'(face underline)))
(defun do-high-ascii (fn)
(interactive "aFunction: ")
(save-excursion
(goto-char (point-min))
(while (< (point) (point-max))
(when (> (char-after) 127)
(funcall fn (point)))
(forward-char 1))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment