diff --git a/modules/lang/julia/autoload.el b/modules/lang/julia/autoload.el index e74ff2d3a..b999631ad 100644 --- a/modules/lang/julia/autoload.el +++ b/modules/lang/julia/autoload.el @@ -9,6 +9,5 @@ (apply #'make-comint-in-buffer "Julia" "*Julia*" julia-program julia-arguments)) (pop-to-buffer buffer) (with-current-buffer buffer - (inferior-julia-mode)))) - - + (inferior-julia-mode)) + buffer)) diff --git a/modules/lang/julia/config.el b/modules/lang/julia/config.el index 06d706ba2..385b49b7a 100644 --- a/modules/lang/julia/config.el +++ b/modules/lang/julia/config.el @@ -7,24 +7,24 @@ ;; Borrow matlab.el's fontification of math operators ;; From - (font-lock-add-keywords - 'julia-mode - `((,(let ((OR "\\|")) - (concat "\\(" ;; stolen `matlab.el' operators first - "[<>!]=?" OR - "\\.[/*^']" OR - "==" OR - "=>" OR - "\\" OR - "[-+*\\/^&|$]=?" OR ;; this has to come before next (updating operators) - "[-!^&|*+\\/~:]" OR - ;; more extra julia operators follow - "[%$]" OR - ;; bitwise operators - ">>>" OR ">>" OR "<<" OR - ">>>=" OR ">>" OR "<<" OR - ;; comparison - "[<>!]=?" OR - "\\)")) - 1 font-lock-type-face)))) - + (dolist (mode '(julia-mode ess-julia-mode)) + (font-lock-add-keywords + mode + `((,(let ((OR "\\|")) + (concat "\\(" ;; stolen `matlab.el' operators first + "[<>!]=?" OR + "\\.[/*^']" OR + "==" OR + "=>" OR + "\\" OR + "[-+*\\/^&|$]=?" OR ;; this has to come before next (updating operators) + "[-!^&|*+\\/~:]" OR + ;; more extra julia operators follow + "[%$]" OR + ;; bitwise operators + ">>>" OR ">>" OR "<<" OR + ">>>=" OR ">>" OR "<<" OR + ;; comparison + "[<>!]=?" OR + "\\)")) + 1 font-lock-type-face)))))