From 7090f13088fe654e9c38a5dfc94b3e98e2afa90b Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 28 Mar 2019 17:41:08 -0700 Subject: [PATCH] Add a grep alias for cmake files --- oni-cmake.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/oni-cmake.el b/oni-cmake.el index d37c460..d8ba67f 100644 --- a/oni-cmake.el +++ b/oni-cmake.el @@ -4,7 +4,7 @@ ;; Author: Tom Willemse ;; Keywords: local -;; Version: 20190328160117 +;; Version: 20190328173541 ;; Package-Requires: (cmake-mode oni-company cmake-font-lock) ;; This program is free software; you can redistribute it and/or modify @@ -42,6 +42,10 @@ eol) 1 2 nil 1 1)) +;;;###autoload +(with-eval-after-load 'grep + (add-to-list 'grep-files-aliases '("cmake" . "CMakeLists.txt *.cmake"))) + ;;;###autoload(with-eval-after-load 'cmake-mode (require 'oni-cmake)) (provide 'oni-cmake)