Skip to content

Commit ae4f21e

Browse files
committed
purescript-indentation.el: replace killing/make-local with just setq-local
There's no reason for killing (I even checked other major modes), and the make-local-variable may be replaced by just setq-local.
1 parent 4c9da82 commit ae4f21e

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

purescript-indentation.el

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,12 @@ set and deleted as if they were real tabs. It supports
126126
autofill-mode."
127127
:lighter " Ind"
128128
:keymap purescript-indentation-mode-map
129-
(kill-local-variable 'indent-line-function)
130-
(kill-local-variable 'normal-auto-fill-function)
131129
(when purescript-indentation-mode
132130
(setq max-lisp-eval-depth (max max-lisp-eval-depth 600)) ;; set a higher limit for recursion
133-
(set (make-local-variable 'indent-line-function)
134-
'purescript-indentation-indent-line)
135-
(set (make-local-variable 'normal-auto-fill-function)
136-
'purescript-indentation-auto-fill-function)))
131+
(setq-local indent-line-function
132+
#'purescript-indentation-indent-line)
133+
(setq-local normal-auto-fill-function
134+
#'purescript-indentation-auto-fill-function)))
137135

138136
;;;###autoload
139137
(defun turn-on-purescript-indentation ()

0 commit comments

Comments
 (0)