|
34 | 34 | (require 'dabbrev) |
35 | 35 | (require 'compile) |
36 | 36 | (require 'outline) |
| 37 | +(require 'purescript-vars) |
37 | 38 | (require 'purescript-align-imports) |
38 | 39 | (require 'purescript-sort-imports) |
39 | 40 | (require 'purescript-string) |
@@ -101,17 +102,6 @@ sure all purescript customize definitions have been loaded." |
101 | 102 | purescript-yas)) |
102 | 103 | (customize-browse 'purescript)) |
103 | 104 |
|
104 | | -;; Are we looking at a literate script? |
105 | | -(defvar purescript-literate nil |
106 | | - "*If not nil, the current buffer contains a literate PureScript script. |
107 | | -Possible values are: `bird' and `tex', for Bird-style and LaTeX-style |
108 | | -literate scripts respectively. Set by `purescript-mode' and |
109 | | -`literate-purescript-mode'. For an ambiguous literate buffer -- i.e. does |
110 | | -not contain either \"\\begin{code}\" or \"\\end{code}\" on a line on |
111 | | -its own, nor does it contain \">\" at the start of a line -- the value |
112 | | -of `purescript-literate-default' is used.") |
113 | | -(make-variable-buffer-local 'purescript-literate) |
114 | | -(put 'purescript-literate 'safe-local-variable 'symbolp) |
115 | 105 | ;; Default literate style for ambiguous literate buffers. |
116 | 106 | (defcustom purescript-literate-default 'bird |
117 | 107 | "Default value for `purescript-literate'. |
@@ -289,8 +279,6 @@ details." |
289 | 279 | turn-on-purescript-simple-indent |
290 | 280 | turn-on-purescript-unicode-input-method)) |
291 | 281 |
|
292 | | -(defvar eldoc-print-current-symbol-info-function) |
293 | | - |
294 | 282 | ;; The main mode functions |
295 | 283 | ;;;###autoload |
296 | 284 | (define-derived-mode purescript-mode prog-mode "PureScript" |
@@ -337,10 +325,7 @@ see documentation for that variable for more details." |
337 | 325 | (setq-local beginning-of-defun-function 'purescript-beginning-of-defun) |
338 | 326 | (setq prettify-symbols-alist purescript-font-lock-prettify-symbols-alist |
339 | 327 | ;; make (ff-find-other-file) find .js FFI file, given .purs |
340 | | - ff-other-file-alist '((".purs\\'" (".js")))) |
341 | | - (when (bound-and-true-p purescript-font-lock-symbols) |
342 | | - (warn "`purescript-font-lock-symbols' is obsolete: please enable `prettify-symbols-mode' locally or globally instead.")) |
343 | | - ) |
| 328 | + ff-other-file-alist '((".purs\\'" (".js"))))) |
344 | 329 |
|
345 | 330 | (defun purescript-fill-paragraph (justify) |
346 | 331 | (save-excursion |
|
0 commit comments