winterTTr/ace-jump-mode — Issue #8: [Feature]  jump to the char at the same line
Author: coldnew
Created: 2012-02-02 06:42:33+00:00
State: open

just a little hack to make jump to the char at the same line more easily

(defun ace-jump-char-smae-line-mode (query-char)
"AceJump char mode in the same line"
(interactive (list (read-char "Query Char:")))
(if (ace-jump-query-char-p query-char)
(progn
(setq ace-jump-query-char query-char)
(setq ace-jump-current-mode 'ace-jump-char-mode)
;; here's what I modify from ace-jump-char-mode
(ace-jump-do (regexp-quote (make-string 1 query-char)) (point-at-bol) (point-at-eol)
))
(error "[AceJump] Non-printable char"))