Skip to content

Commit cb632be

Browse files
committed
Require purescript-font-lock dynamically to avoid self-recursive load
The features are not properly structured hierarchically into files so as to allow sensible loading, so we work around this to load things as needed.
1 parent 4e73f3f commit cb632be

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

purescript-mode.el

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@
3535
(require 'purescript-align-imports)
3636
(require 'purescript-sort-imports)
3737
(require 'purescript-string)
38-
(require 'purescript-font-lock)
3938
(require 'cl-lib)
4039

4140
;; All functions/variables start with `(literate-)purescript-'.
@@ -321,6 +320,7 @@ see documentation for that variable for more details."
321320
(set (make-local-variable 'parse-sexp-ignore-comments) nil)
322321
(set (make-local-variable 'indent-line-function) 'purescript-mode-suggest-indent-choice)
323322
;; Set things up for font-lock.
323+
(require 'purescript-font-lock)
324324
(set (make-local-variable 'font-lock-defaults)
325325
'(purescript-font-lock-choose-keywords
326326
nil nil ((?\' . "w") (?_ . "w")) nil

0 commit comments

Comments
 (0)