summaryrefslogtreecommitdiff
path: root/emacs-blue
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-blue')
-rw-r--r--emacs-blue6
1 files changed, 6 insertions, 0 deletions
diff --git a/emacs-blue b/emacs-blue
index 6f378c7..abd23e7 100644
--- a/emacs-blue
+++ b/emacs-blue
@@ -212,6 +212,12 @@
(require 'flycheck)
(global-flycheck-mode)
+;; 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"