From d2100c3b3fc3b189dda904ec2d57897acf83f54d Mon Sep 17 00:00:00 2001 From: TEC Date: Thu, 21 Mar 2024 23:48:53 +0800 Subject: [PATCH] Highlight "julia>" in julia-mode It's good when using julia-mode for Julia repl examples. --- config.org | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/config.org b/config.org index 9097fc5..6b04cd0 100644 --- a/config.org +++ b/config.org @@ -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