branch: elpa/julia-mode commit 4f56ded3c283cd0881fa2fbb5e8d234a6589631f Author: Ralph A. Smith <smith.ralp...@gmail.com> Commit: Ralph A. Smith <smith.ralp...@gmail.com>
make lookback distance customizable User-friendly remedy for JuliaEditorSupport/julia-emacs/issues/#5 --- julia-mode.el | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/julia-mode.el b/julia-mode.el index 6f204d1..48cffa5 100644 --- a/julia-mode.el +++ b/julia-mode.el @@ -479,12 +479,14 @@ beginning of the buffer." (unless (eq (point) (point-min)) (backward-char))) -(defvar julia-max-block-lookback 5000 +(defcustom julia-max-block-lookback 5000 "When indenting, don't look back more than this many characters to see if there are unclosed blocks. This variable has a moderate effect on indent performance if set too -high.") +high, but stops indenting in the middle of long blocks if set too low." + :type 'integer + :group 'julia) (defun julia-paren-indent () "Return the column of the text following the innermost