1
0
Fork 0

Add compilation regexp for CMake warnings

This commit is contained in:
Tom Willemse 2019-03-28 16:12:27 -07:00
parent 09c81fbf3c
commit 213169c563

View file

@ -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)