Skip to content

Commit

Permalink
be smarter about julia-mode.el
Browse files Browse the repository at this point in the history
  • Loading branch information
rsparapa committed Sep 8, 2015
1 parent 177bab2 commit 8db31b5
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
6 changes: 3 additions & 3 deletions lisp/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ ESSR_VER =`cat ../etc/ESSR-VERSION`

### Targets

all: $(ELC) ess-custom.el
all: $(ELC) ess-custom.el julia-mode.el

.PHONY: dist
dist: all
Expand Down Expand Up @@ -103,9 +103,9 @@ ess-custom.el: ../VERSION
# ess-r-d.el: ../etc/ESSR-VERSION
# sed -i -e '/let.*ESSR-version/s/"[-.0-9]*"/"$(ESSR_VER)"/' $@

## This should typically happen before releasing ESS
## This should typically happen before building ESS
julia-mode.el:
wget https://raw.githubusercontent.com/JuliaLang/julia/master/contrib/julia-mode.el
$(DOWNLOAD) https://raw.githubusercontent.com/JuliaLang/julia/master/contrib/julia-mode.el > julia-mode.el

### File Dependencies

Expand Down
9 changes: 7 additions & 2 deletions lisp/ess-julia.el
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,12 @@

(require 'compile); for compilation-* below
(require 'ess-utils)
(require 'julia-mode)

(condition-case nil
(progn
(require 'julia-mode)
(when (featurep 'julia-mode)

(eval-when-compile
(require 'cl))

Expand Down Expand Up @@ -389,6 +394,6 @@ to julia, put them in the variable `inferior-julia-args'."

(add-to-list 'auto-mode-alist '("\\.jl\\'" . ess-julia-mode))

)) (error nil))
(provide 'ess-julia)

;;; ess-julia.el ends here

0 comments on commit 8db31b5

Please sign in to comment.