aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--oni-cmake.el14
1 files changed, 13 insertions, 1 deletions
diff --git a/oni-cmake.el b/oni-cmake.el
index 1785857..d37c460 100644
--- a/oni-cmake.el
+++ b/oni-cmake.el
@@ -4,7 +4,7 @@
;; Author: Tom Willemse <tom@ryuslash.org>
;; Keywords: local
-;; Version: 20190226010348
+;; Version: 20190328160117
;; Package-Requires: (cmake-mode oni-company cmake-font-lock)
;; This program is free software; you can redistribute it and/or modify
@@ -26,10 +26,22 @@
;;; Code:
+(require 'compile)
+
(add-hook 'cmake-mode-hook 'cmake-font-lock-activate)
(add-hook 'cmake-mode-hook 'company-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))
(provide 'oni-cmake)