Add compilation regexp for CMake warnings
This commit is contained in:
parent
09c81fbf3c
commit
213169c563
1 changed files with 13 additions and 1 deletions
14
oni-cmake.el
14
oni-cmake.el
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 20190226010348
|
;; Version: 20190328160117
|
||||||
;; Package-Requires: (cmake-mode oni-company cmake-font-lock)
|
;; Package-Requires: (cmake-mode oni-company cmake-font-lock)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -26,10 +26,22 @@
|
||||||
|
|
||||||
;;; Code:
|
;;; Code:
|
||||||
|
|
||||||
|
(require 'compile)
|
||||||
|
|
||||||
(add-hook 'cmake-mode-hook 'cmake-font-lock-activate)
|
(add-hook 'cmake-mode-hook 'cmake-font-lock-activate)
|
||||||
(add-hook 'cmake-mode-hook 'company-mode)
|
(add-hook 'cmake-mode-hook 'company-mode)
|
||||||
(add-hook 'cmake-mode-hook 'electric-pair-local-mode)
|
(add-hook 'cmake-mode-hook 'electric-pair-local-mode)
|
||||||
|
|
||||||
|
(add-to-list 'compilation-error-regexp-alist
|
||||||
|
`(,(rx bol
|
||||||
|
"CMake Warning (dev) at "
|
||||||
|
(group (minimal-match (1+ any)))
|
||||||
|
":"
|
||||||
|
(group (minimal-match (1+ digit)))
|
||||||
|
" (" (1+ any) "):"
|
||||||
|
eol)
|
||||||
|
1 2 nil 1 1))
|
||||||
|
|
||||||
;;;###autoload(with-eval-after-load 'cmake-mode (require 'oni-cmake))
|
;;;###autoload(with-eval-after-load 'cmake-mode (require 'oni-cmake))
|
||||||
|
|
||||||
(provide 'oni-cmake)
|
(provide 'oni-cmake)
|
||||||
|
|
Loading…
Reference in a new issue