diff options
author | Tom Willemse | 2019-03-28 17:41:08 -0700 |
---|---|---|
committer | Tom Willemse | 2019-03-28 17:41:08 -0700 |
commit | 7090f13088fe654e9c38a5dfc94b3e98e2afa90b (patch) | |
tree | 60596d75376303164b05b28ab24d84b9d8579a81 | |
parent | 213169c563e9e7c6f05b3d18e3ea754be1be175b (diff) | |
download | emacs-config-7090f13088fe654e9c38a5dfc94b3e98e2afa90b.tar.gz emacs-config-7090f13088fe654e9c38a5dfc94b3e98e2afa90b.zip |
Add a grep alias for cmake files
-rw-r--r-- | oni-cmake.el | 6 |
1 files changed, 5 insertions, 1 deletions
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 <tom@ryuslash.org> ;; 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) |