From b436daa9f0aa004dc90dd7fbd61f39e9902bfa2d Mon Sep 17 00:00:00 2001 From: Joel Klinghed Date: Tue, 27 Feb 2018 11:28:16 +0100 Subject: Include C++ files when grepping from a header (.h) file --- emacs-stark | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'emacs-stark') diff --git a/emacs-stark b/emacs-stark index 27a5b27..97c064d 100644 --- a/emacs-stark +++ b/emacs-stark @@ -229,6 +229,12 @@ (global-flycheck-mode) (setq flycheck-check-syntax-automatically '(save new-line)) +;; replace ch alias fro grep with cchh alias, ie if starting with a ".h" file +;; you might still want to search in cc files +(eval-after-load "grep" + '(setf (cdr (assoc "ch" grep-files-aliases)) + (cdr (assoc "cchh" grep-files-aliases)))) + (c-add-style "common c" '("gnu" -- cgit v1.2.3-70-g09d2