Emacs users should know about julia-max-block-lookback

purplishrock
Fri, 30 Mar 2018 04:40:37 +0000
General Usage

yeah- don’t use 5000. that’s too small a number.
10000 is better.
mystery of why my indentation was failing in the middle of a file solved.

in emacs’ julia mode

(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, but stops indenting in the middle of long blocks if set too low."
  :type 'integer
  :group 'julia)

edit: backticks + which editor it is (doesn’t everybody use emacs ?)

4 posts - 3 participants