FUEL: Fontify looked up word in xref buffers.
parent
3721086424
commit
06273fddfd
|
@ -76,9 +76,10 @@ cursor at the first ocurrence of the used word."
|
||||||
|
|
||||||
(defun fuel-xref--title (word cc count)
|
(defun fuel-xref--title (word cc count)
|
||||||
(let ((cc (if cc "using" "used by")))
|
(let ((cc (if cc "using" "used by")))
|
||||||
(cond ((zerop count) (format "No known words %s '%s'" cc word))
|
(put-text-property 0 (length word) 'font-lock-face 'bold word)
|
||||||
((= 1 count) (format "1 word %s '%s':" cc word))
|
(cond ((zerop count) (format "No known words %s %s" cc word))
|
||||||
(t (format "%s words %s '%s':" count cc word)))))
|
((= 1 count) (format "1 word %s %s:" cc word))
|
||||||
|
(t (format "%s words %s %s:" count cc word)))))
|
||||||
|
|
||||||
(defun fuel-xref--insert-ref (ref)
|
(defun fuel-xref--insert-ref (ref)
|
||||||
(when (and (stringp (first ref))
|
(when (and (stringp (first ref))
|
||||||
|
|
Loading…
Reference in New Issue