Потихоньку перебираюсь на емакс.
Помогите подключить gcc к flycheck, уже весь вечер бьюсь.
В конфиге есть такое:
(flycheck-define-checker c-gcc
:command ("gcc"
"-Wall"
"-Wextra"
"-fsyntax-only"
source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column
": warning: " (message) line-end)
(error line-start (file-name) ":" line ":" column
": error: " (message) line-end))
:modes (c-mode))
(add-to-list 'flycheck-checkers 'c-gcc)
progn: Missing :command
На гитхабе нашел (https://github.com/jedrz/.emacs.d/blob/master/setup-flycheck.el) такую вещь:
(defmacro flycheck-define-clike-checker (name command modes)
`(flycheck-define-checker ,(intern (format "%s" name))
,(format "A %s checker using %s" name (car command))
:command (,@command source-inplace)
:error-patterns
((warning line-start (file-name) ":" line ":" column
": warning: " (message) line-end)
(error line-start (file-name) ":" line ":" column
": error: " (message) line-end))
:modes ',modes))
(flycheck-define-clike-checker c-gcc
("gcc" "-fsyntax-only" "-Wall" "-Wextra")
c-mode)
(add-to-list 'flycheck-checkers 'c-gcc)