-
Notifications
You must be signed in to change notification settings - Fork 1
/
packages.el
54 lines (48 loc) · 1.49 KB
/
packages.el
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
;;; packages.el --- julia layer packages file for Spacemacs.
;;
;; Copyright (c) 2012-2017 Sylvain Benner & Contributors
;;
;; Author: Marcio Giaxa Marinheiro <marciogiaxa@gmail.com>
;; URL: https://github.com/marciogm/julia-layer
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;;; Code:
(defconst julia-packages
'((julia-mode :location (recipe
:fetcher github
:repo "JuliaEditorSupport/julia-emacs"))
(julia-repl :location (recipe
:fetcher github
:repo "tpapp/julia-repl"))
(flycheck-julia))
"The list of Lisp packages required by the julia layer.")
(defvar julia-executable "julia")
(defun julia/init-julia-mode ()
(use-package julia-mode
:defer t))
(defun julia/init-julia-repl ()
(use-package julia-repl
:defer t
:init
(progn
(setq julia-repl-executable julia-executable)
(add-hook 'julia-mode-hook 'julia-repl-mode)
(spacemacs/set-leader-keys-for-major-mode 'julia-repl-mode
"sc" 'julia-repl-send-region-or-line
"sb" 'julia-repl-send-buffer
"sl" 'julia-repl-send-line
"e" 'julia-repl-edit
"d" 'julia-repl-doc
"w" 'julia-repl-workspace
"m" 'julia-repl-macroexpand))))
(defun julia/init-flycheck-julia ()
(use-package flycheck-julia
:defer t
:init
(progn
(setq flycheck-julia-executable julia-executable)
(flycheck-julia-setup)))
)
;;; packages.el ends here