Skip to content

Commit e23a528

Browse files
committed
purescript-indentation.el: simplify localizing indent-last-position
1 parent 029c150 commit e23a528

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

purescript-indentation.el

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
(defvar parse-line-number)
4848
(defvar possible-indentations)
4949
(defvar indentation-point)
50-
(defvar purescript-indent-last-position)
50+
(defvar-local purescript-indent-last-position nil)
5151

5252
(defgroup purescript-indentation nil
5353
"PureScript indentation."
@@ -133,9 +133,7 @@ autofill-mode."
133133
(set (make-local-variable 'indent-line-function)
134134
'purescript-indentation-indent-line)
135135
(set (make-local-variable 'normal-auto-fill-function)
136-
'purescript-indentation-auto-fill-function)
137-
(set (make-local-variable 'purescript-indent-last-position)
138-
nil)))
136+
'purescript-indentation-auto-fill-function)))
139137

140138
;;;###autoload
141139
(defun turn-on-purescript-indentation ()

0 commit comments

Comments
 (0)