mooz/js2-mode — Issue #32: Replacing function with ƒ visually
Author: magnars
Created: 2012-01-04 00:15:20+00:00
State: open

Googling around yields

(font-lock-add-keywords
'js2-mode `(("\\(function *\\)("
(0 (progn (compose-region (match-beginning 1)
(match-end 1) "\u0192")
nil)))))

which doesn't seem to do anything. My guess is it has something to do with:

(js2-mode-run-font-lock) ; note: doesn't work

Is there any other way of obtaining the same result in js2-mode?