Add julia-mode
This commit is contained in:
parent
54dcb9fd44
commit
adbd4eecd0
4 changed files with 31 additions and 0 deletions
3
Cask
3
Cask
|
@ -167,6 +167,9 @@
|
|||
(depends-on "company-tern")
|
||||
(depends-on "nodejs-repl")
|
||||
|
||||
;; Julia -- modules/module-julia.el
|
||||
(depends-on "julia-mode")
|
||||
|
||||
;; Lisp -- modules/module-lisp.el
|
||||
(depends-on "slime")
|
||||
|
||||
|
|
1
init.el
1
init.el
|
@ -73,6 +73,7 @@
|
|||
module-haskell ; a language that's lazier than I am
|
||||
module-java ; the poster child for carpal tunnel syndome
|
||||
module-js ; all(hope(abandon(ye(who(enter(here))))))
|
||||
module-julia ; MATLAB, but fast
|
||||
module-lisp ; drowning in parentheses
|
||||
module-lua ; one-based indices? one-based indices.
|
||||
module-php ; making php less painful to work with
|
||||
|
|
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
|
Loading…
Add table
Add a link
Reference in a new issue