Closed ElifUskuplu closed 8 months ago
Actually, I solved my problem. After providing PA-apply-dynamic-highlighting
, I also defined
(defun PA-refresh-font-lock ()
"Refresh font lock to apply dynamic highlighting."
(font-lock-flush)
(font-lock-ensure))
(defun PA-after-change-function (start end len)
"Function to be called after changes to update and apply dynamic highlighting."
(PA-update-dynamic-terms)
(PA-apply-dynamic-highlighting)
(PA-refresh-font-lock))
Then, I added it to hook:
add-hook 'PA-mode-hook
(lambda ()
(add-hook 'after-change-functions 'PA-after-change-function nil t)))
I wonder is there any easier way, or any proof-easy-config variable that I can use?
I am very beginner in PG, and trying to adapt it to an experimental proof assistant. Initially, I created a simple emacs mode file with a dynamic highlighting property:
How can I do the same using Proof General? Or is there any feature of PG that allowing such highlighting rules?