diff options
author | 2018-02-07 11:09:12 -0800 | |
---|---|---|
committer | 2018-02-07 11:09:12 -0800 | |
commit | 1710d2f7eef7f734f216229dc72f80071c7b8a4f (patch) | |
tree | d86d02c7f250cc4d5948feafcef6840d7eb2aee4 | |
parent | e835c42446a29d057ac6ec7a85b7e51a0ddd4a11 (diff) | |
download | new-dotfiles-1710d2f7eef7f734f216229dc72f80071c7b8a4f.tar.gz new-dotfiles-1710d2f7eef7f734f216229dc72f80071c7b8a4f.zip |
Add grep file aliases for JS and CSS files
-rw-r--r-- | emacs/.emacs.d/init.org | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index a5d2bcc..95e2669 100644 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -1616,6 +1616,20 @@ Computing Environment". (add-hook 'org-mode-hook 'org-bullets-mode) #+END_SRC +** Grep + + Make searching for "js" include ~*.js~, ~*.jsx~ and ~*.json~ files. + + #+BEGIN_SRC emacs-lisp + (add-to-list 'grep-files-aliases '("js" . "*.js *.jsx *.json")) + #+END_SRC + + Make searching for "css" include ~*.css~, ~*.less~, ~*.sass~ and + ~*.scss~ files. + + #+BEGIN_SRC emacs-lisp + (add-to-list 'grep-files-aliases '("css" . "*.css *.less *.sass *.scss")) + #+END_SRC * Custom Put the customize settings in a different file so that Emacs doesn't |