Skip to content

Commit

Permalink
Move use of ess with julia to julia layer
Browse files Browse the repository at this point in the history
  • Loading branch information
non-Jedi committed Mar 15, 2018
1 parent 95c5839 commit dde0cfd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 0 additions & 2 deletions layers/+lang/ess/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
("\\.do\\'" . STA-mode)
("\\.ado\\'" . STA-mode)
("\\.[Ss][Aa][Ss]\\'" . SAS-mode)
("\\.jl\\'" . ess-julia-mode)
("\\.[Ss]t\\'" . S-transcript-mode)
("\\.Sout" . S-transcript-mode)
("\\.[Rr]out" . R-transcript-mode)
Expand All @@ -50,7 +49,6 @@
:commands (R stata julia SAS)
:init
(progn
(spacemacs/register-repl 'ess-site 'julia)
(spacemacs/register-repl 'ess-site 'R)
(spacemacs/register-repl 'ess-site 'SAS)
(spacemacs/register-repl 'ess-site 'stata)
Expand Down
2 changes: 1 addition & 1 deletion layers/+lang/julia/funcs.el
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
(julia-repl-mode))

(defun spacemacs//julia-setup-ess ()
nil)
(add-to-list auto-mode-alist ("\\.jl\\'" . ess-julia-mode)))

(defun spacemacs//julia-setup-lsp ()
"Start lsp-mode and configure for buffer."
Expand Down
4 changes: 4 additions & 0 deletions layers/+lang/julia/packages.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
:repo "non-Jedi/lsp-julia"))
flycheck
company-lsp
ess
))

(defun julia/init-julia-mode ()
Expand Down Expand Up @@ -88,4 +89,7 @@

(defun julia/post-init-flycheck ()
(spacemacs/enable-flycheck 'julia-mode))

(defun julia/post-init-ess ()
(spacemacs/register-repl 'ess-site 'julia))
;;; packages.el ends here

0 comments on commit dde0cfd

Please sign in to comment.