diff options
author | Tassilo Horn <tsdh@gnu.org> | 2015-08-21 20:18:34 +0200 |
---|---|---|
committer | Tassilo Horn <tsdh@gnu.org> | 2015-08-21 20:19:47 +0200 |
commit | 2649105ae30edf97ac5f543b269886103c42c91c (patch) | |
tree | 15469c9fee409aa8a807909756ca400199aff908 /lisp | |
parent | 74881b6e068e209725527b3776aaaa7955d4fb4a (diff) | |
download | emacs-2649105ae30edf97ac5f543b269886103c42c91c.tar.gz |
Use add-function for prettify-symbols-compose-predicate
* lisp/textmodes/tex-mode.el (tex-common-initialization): Set
prettify-symbols-compose-predicate in terms of add-function.
* etc/NEWS: Mention prettify-symbols-compose-predicate and
prettify-symbols-mode support in tex-mode.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/textmodes/tex-mode.el | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/textmodes/tex-mode.el b/lisp/textmodes/tex-mode.el index 8f68c71fd17..78cfbeaf895 100644 --- a/lisp/textmodes/tex-mode.el +++ b/lisp/textmodes/tex-mode.el @@ -1256,7 +1256,8 @@ Entering SliTeX mode runs the hook `text-mode-hook', then the hook (font-lock-unfontify-region-function . tex-font-lock-unfontify-region))) (setq-local prettify-symbols-alist tex--prettify-symbols-alist) - (setq-local prettify-symbols-compose-predicate #'tex--prettify-symbols-compose-p) + (add-function :override (local 'prettify-symbols-compose-predicate) + #'tex--prettify-symbols-compose-p) (setq-local syntax-propertize-function (syntax-propertize-rules latex-syntax-propertize-rules)) ;; TABs in verbatim environments don't do what you think. |