Highlight "julia>" in julia-mode

It's good when using julia-mode for Julia repl examples.
This commit is contained in:
TEC 2024-03-21 23:48:53 +08:00
parent 58562718ee
commit d2100c3b3f
Signed by: tec
SSH Key Fingerprint: SHA256:eobz41Mnm0/iYWBvWThftS0ElEs1ftBr6jamutnXc/A
1 changed files with 9 additions and 0 deletions

View File

@ -13898,6 +13898,15 @@ Lastly, whenever Emacs is non-graphical (i.e. a TUI), we want to use this by def
#+call: confpkg(after="julia-mode")
It would be nice if =julia-mode= also highlighted the =julia>= prompt when writing
REPL examples.
#+begin_src emacs-lisp
(add-to-list
'julia-font-lock-keywords
'("^julia>" 0 '(font-lock-string-face bold) prepend))
#+end_src
As mentioned in [[https://github.com/non-Jedi/lsp-julia/issues/35][lsp-julia#35]], =lsp-mode= seems to serve an invalid response to the
Julia server. The pseudo-fix is rather simple at least
#+begin_src emacs-lisp