Skip to content

Instantly share code, notes, and snippets.

View AdamG's full-sized avatar

Adam Gomaa AdamG

  • San Francisco, CA
View GitHub Profile
;; modified version of zap-to-char from emacs CVS
;;
;; http://cvs.savannah.gnu.org/viewvc/emacs/emacs/lisp/simple.el?revision=1.1&view=markup
;;
;; Uncomment one line to get up-to-char behavior, as referenced in
;;
;; http://www.emacswiki.org/emacs/ZapToCharUsage#toc4
(defun zap-up-to-char (arg char)
"Kill up to ARG'th occurrence of CHAR.