Skip to content

Commit 018246d

Browse files
committed
Use julia-indent-line when indenting for Julia kernels in the REPL
* jupyter-julia.el (jupyter-indent-line): Do it. (jupyter-markdown-follow-link): Use `derived-mode-p`.
1 parent 31af092 commit 018246d

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

jupyter-julia.el

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,11 @@
2929
(eval-when-compile (require 'subr-x))
3030
(require 'jupyter-repl)
3131

32-
(declare-function julia-latexsub-or-indent "ext:julia-mode" (arg))
32+
(declare-function julia-indent-line "ext:julia-mode" ())
3333

3434
(cl-defmethod jupyter-indent-line (&context (major-mode julia-mode))
35-
"Call `julia-latexsub-or-indent'."
36-
(call-interactively #'julia-latexsub-or-indent))
35+
"Call `julia-indent-line'."
36+
(julia-indent-line))
3737

3838
(cl-defmethod jupyter-load-file-code (file &context (jupyter-lang julia))
3939
(format "include(\"%s\");" file))
@@ -91,7 +91,7 @@ manual for <section>. Otherwise follow the link normally."
9191
(if (string= url "@ref")
9292
;; Links have the form `fun`
9393
(let ((fun (substring link-text 1 -1)))
94-
(if (not (eq major-mode 'jupyter-repl-mode))
94+
(if (not (derived-mode-p 'jupyter-repl-mode))
9595
(jupyter-inspect fun (1- (length fun)))
9696
(goto-char (point-max))
9797
(jupyter-repl-replace-cell-code (concat "?" fun))

0 commit comments

Comments
 (0)