Skip to content

Instantly share code, notes, and snippets.

@syohex
Created October 1, 2012 13:55
Show Gist options
  • Save syohex/3811925 to your computer and use it in GitHub Desktop.
Save syohex/3811925 to your computer and use it in GitHub Desktop.
flymake with helm interface
(require 'flymake)
(defvar helm-c-flymake-source
'((name . "Error and Warnings")
(candidates . (lambda ()
(with-current-buffer helm-current-buffer
(loop for err in flymake-err-info
for line = (car err)
for detail = (caar (cdr err))
for msg = (format "%5d: %s" line (aref detail 4))
collect (cons msg line)))))
(action . (lambda (c)
(goto-line c helm-current-buffer)))
(valatile)))
(defun helm-flymake ()
(interactive)
(helm :sources '(helm-c-flymake-source)
:buffer (get-buffer-create "*helm flymake*")))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment