mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-17 13:33:36 -05:00
Add julia-mode
This commit is contained in:
15
modules/defuns/defuns-julia.el
Normal file
15
modules/defuns/defuns-julia.el
Normal file
@@ -0,0 +1,15 @@
|
||||
;;; defuns-julia.el
|
||||
|
||||
;;;###autoload
|
||||
(defun narf/julia-repl ()
|
||||
"Run an inferior instance of `julia' inside Emacs."
|
||||
(interactive)
|
||||
(let ((buffer (get-buffer-create "*Julia*")))
|
||||
(unless (comint-check-proc "*Julia*")
|
||||
(apply #'make-comint-in-buffer "Julia" "*Julia*" julia-program julia-arguments))
|
||||
(pop-to-buffer buffer)
|
||||
(with-current-buffer buffer
|
||||
(inferior-julia-mode))))
|
||||
|
||||
(provide 'defuns-julia)
|
||||
;;; defuns-julia.el ends here
|
12
modules/module-julia.el
Normal file
12
modules/module-julia.el
Normal file
@@ -0,0 +1,12 @@
|
||||
;;; module-julia.el
|
||||
|
||||
(use-package julia-mode
|
||||
:mode "\\.jl$"
|
||||
:interpreter "julia"
|
||||
:init
|
||||
(define-repl! julia-mode narf/julia-repl)
|
||||
(evil-set-initial-state 'inferior-julia-mode 'emacs)
|
||||
(add-to-list 'editorconfig-indentation-alist '(julia-mode julia-indent-offset)))
|
||||
|
||||
(provide 'module-julia)
|
||||
;;; module-julia.el ends here
|
Reference in New Issue
Block a user