branch: master commit dab82282bfea86d2a417c5ba044f176a34b68078 Author: Jeremy Bryant <j...@jeremybryant.net> Commit: Arash Esbati <ar...@gnu.org>
; Clarify manual reference to `prettify-symbols-mode' * doc/auctex.texi (Prettifying): Spell out code required to enable `prettify-symbols-mode' to help new users. (bug#71234) --- doc/auctex.texi | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/doc/auctex.texi b/doc/auctex.texi index f57fa752..c79e8c20 100644 --- a/doc/auctex.texi +++ b/doc/auctex.texi @@ -2959,10 +2959,13 @@ behaviour however you need to set @code{right-edge} which will unprettify the symbol when point moves into or near it. -To enable prettification in @AUCTeX{}, simply add -@code{prettify-symbols-mode} to @code{TeX-mode-hook}. If you enabled -prettification globally with @code{global-prettify-symbols-mode}, then -it's automatically enabled in @AUCTeX{}, too. +To enable prettification in @AUCTeX{}, simply add this to your init file: +@lisp +(add-hook 'TeX-mode-hook #'prettify-symbols-mode) +@end lisp +If you enabled prettification globally with +@code{(global-prettify-symbols-mode)}, then it's automatically enabled in +@AUCTeX{}, too. You can also add custom symbol unicode-character pairs for prettification by adding to @code{tex--prettify-symbols-alist}. Note