branch: elpa/yaml-mode commit c7573962216f79e93642b91e7aa8552f7be46b41 Author: Vasilij Schneidermann <v.schneiderm...@gmail.com> Commit: Vasilij Schneidermann <v.schneiderm...@gmail.com>
Remove unnecessary refontification Closes #37 --- yaml-mode.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/yaml-mode.el b/yaml-mode.el index 3b01a15..39c0e57 100644 --- a/yaml-mode.el +++ b/yaml-mode.el @@ -225,11 +225,7 @@ that key is pressed to begin a block literal." (set (make-local-variable 'syntax-propertize-function) 'yaml-mode-syntax-propertize-function) - (setq font-lock-defaults '(yaml-font-lock-keywords)) - (if (fboundp 'font-lock-flush) - (font-lock-flush) - (with-no-warnings - (font-lock-fontify-buffer)))) + (setq font-lock-defaults '(yaml-font-lock-keywords))) ;; Font-lock support