diff options
author | Tom Willemse | 2019-03-28 16:12:27 -0700 |
---|---|---|
committer | Tom Willemse | 2019-03-28 16:12:27 -0700 |
commit | 213169c563e9e7c6f05b3d18e3ea754be1be175b (patch) | |
tree | a3cb4fdb927de0a21d283b6497719c729eea9fab | |
parent | 09c81fbf3c43822c0cfc5a6ed956cac2fd8b85a1 (diff) | |
download | emacs-config-213169c563e9e7c6f05b3d18e3ea754be1be175b.tar.gz emacs-config-213169c563e9e7c6f05b3d18e3ea754be1be175b.zip |
Add compilation regexp for CMake warnings
-rw-r--r-- | oni-cmake.el | 14 |
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) |