Skip to content

Commit 9eaf461

Browse files
da-xbergey
authored andcommitted
haskell-load: add haskell-goto-first-error
1 parent f6eb793 commit 9eaf461

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

haskell-load.el

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,12 @@ correspondingly-named overlay properties of OVL."
346346
(t
347347
(message "No further notes from Haskell compiler."))))
348348

349+
(defun haskell-goto-first-error ()
350+
(interactive)
351+
(haskell-goto-error-overlay
352+
(first-overlay-in-if 'haskell-check-overlay-p
353+
(buffer-end 0) (buffer-end 1))))
354+
349355
(defun haskell-goto-prev-error ()
350356
(interactive)
351357
(haskell-goto-error-overlay

haskell.el

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
(define-key map [?\C-c ?\C-z] 'haskell-interactive-switch)
5555
(define-key map (kbd "M-n") 'haskell-goto-next-error)
5656
(define-key map (kbd "M-p") 'haskell-goto-prev-error)
57+
(define-key map (kbd "C-c M-p") 'haskell-goto-first-error)
5758
map)
5859
"Keymap for using haskell-interactive-mode.")
5960

0 commit comments

Comments
 (0)