Created
October 1, 2012 13:55
-
-
Save syohex/3811925 to your computer and use it in GitHub Desktop.
flymake with helm interface
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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