summaryrefslogtreecommitdiff
path: root/emacs-stark
diff options
context:
space:
mode:
Diffstat (limited to 'emacs-stark')
-rw-r--r--emacs-stark6
1 files changed, 6 insertions, 0 deletions
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"