diff options
| -rw-r--r-- | emacs-blue | 6 | ||||
| -rw-r--r-- | emacs-stark | 6 | ||||
| -rw-r--r-- | emacs-willow | 6 |
3 files changed, 18 insertions, 0 deletions
@@ -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" 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" 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" |
