Skip to content

Commit 13b3648

Browse files
committed
Put the type error buffer into view-mode for convenient dismissal with q
1 parent b59698e commit 13b3648

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dhall-mode.el

+3-1
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,7 @@ down. You can also disable type-checking entirely by setting
156156
(source (buffer-string)))
157157
(with-temp-buffer
158158
(with-current-buffer errbuf
159+
(read-only-mode -1)
159160
(erase-buffer))
160161
(insert source)
161162
(if (zerop (shell-command-on-region (point-min)
@@ -167,7 +168,8 @@ down. You can also disable type-checking entirely by setting
167168
(prog1
168169
nil
169170
(with-current-buffer errbuf
170-
(ansi-color-apply-on-region (point-min) (point-max))))))))))
171+
(ansi-color-apply-on-region (point-min) (point-max))
172+
(view-mode)))))))))
171173

172174
(reformatter-define dhall-format
173175
:program (or dhall-format-command dhall-command)

0 commit comments

Comments
 (0)