summaryrefslogtreecommitdiff
path: root/emacs-willow
diff options
context:
space:
mode:
authorJoel Klinghed <the_jk@opera.com>2018-02-27 11:28:16 +0100
committerJoel Klinghed <the_jk@opera.com>2018-02-27 11:29:13 +0100
commitb436daa9f0aa004dc90dd7fbd61f39e9902bfa2d (patch)
tree80f0f91e06b2bb225d923b7011eaf1a1df1b28cc /emacs-willow
parentc0045c8324f5fb72b48ff53e13115efeeaf2db51 (diff)
Include C++ files when grepping from a header (.h) file
Diffstat (limited to 'emacs-willow')
-rw-r--r--emacs-willow6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs-willow b/emacs-willow
index 8ce5647..7642de9 100644
--- a/emacs-willow
+++ b/emacs-willow
@@ -243,6 +243,12 @@
(when (not (display-graphic-p))
(setq flycheck-indication-mode nil))
+;; 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"