Only activating when executing activating command in individual buffer
ChloeZhou1997 opened this issue · 1 comments
ChloeZhou1997 commented
The demo works, but only if I execute
;; Activate
(push 'display font-lock-extra-managed-props)
(font-lock-add-keywords nil svg-font-lock-keywords)
(font-lock-flush (point-min) (point-max))
This part of the code in the buffer where I want the style to be turn on... if there any other way I can do it?
rougier commented
The first line tells Emacs font-lock should use the display properties with font lock and it is a global settings I think. For the second line, this actually adds the new keyword and the last line force a recomputation. Depending on where you svg-libs, you can ad this to a hook function for some specific modes.