lang/julia: operator highlights for ess-julia-mode
And adjust REPL handler to return the repl buffer.
This commit is contained in:
parent
4c4c0a451f
commit
0edeafadcf
2 changed files with 23 additions and 24 deletions
|
@ -9,6 +9,5 @@
|
||||||
(apply #'make-comint-in-buffer "Julia" "*Julia*" julia-program julia-arguments))
|
(apply #'make-comint-in-buffer "Julia" "*Julia*" julia-program julia-arguments))
|
||||||
(pop-to-buffer buffer)
|
(pop-to-buffer buffer)
|
||||||
(with-current-buffer buffer
|
(with-current-buffer buffer
|
||||||
(inferior-julia-mode))))
|
(inferior-julia-mode))
|
||||||
|
buffer))
|
||||||
|
|
||||||
|
|
|
@ -7,8 +7,9 @@
|
||||||
|
|
||||||
;; Borrow matlab.el's fontification of math operators
|
;; Borrow matlab.el's fontification of math operators
|
||||||
;; From <https://ogbe.net/emacsconfig.html>
|
;; From <https://ogbe.net/emacsconfig.html>
|
||||||
|
(dolist (mode '(julia-mode ess-julia-mode))
|
||||||
(font-lock-add-keywords
|
(font-lock-add-keywords
|
||||||
'julia-mode
|
mode
|
||||||
`((,(let ((OR "\\|"))
|
`((,(let ((OR "\\|"))
|
||||||
(concat "\\(" ;; stolen `matlab.el' operators first
|
(concat "\\(" ;; stolen `matlab.el' operators first
|
||||||
"[<>!]=?" OR
|
"[<>!]=?" OR
|
||||||
|
@ -26,5 +27,4 @@
|
||||||
;; comparison
|
;; comparison
|
||||||
"[<>!]=?" OR
|
"[<>!]=?" OR
|
||||||
"\\)"))
|
"\\)"))
|
||||||
1 font-lock-type-face))))
|
1 font-lock-type-face)))))
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue