mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
47 lines
1.3 KiB
EmacsLisp
47 lines
1.3 KiB
EmacsLisp
;;; siren-full-ack.el --- jimeh's Emacs Siren: full-ack configuration.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Basic configuration for full-ack.
|
|
|
|
;;; Code:
|
|
|
|
(siren-require-packages '(full-ack))
|
|
|
|
(require 'full-ack)
|
|
(setq ack-arguments
|
|
(quote ("--sort-files"
|
|
"--ignore-dir=vendor/ruby"
|
|
"--ignore-dir=vendor/bundle"
|
|
"--ignore-dir=coverage"
|
|
"--ignore-dir=savefile"
|
|
"--ignore-dir=Godeps"
|
|
"--ignore-dir=elpa"
|
|
"--ignore-dir=docs"
|
|
"--ignore-dir=doc"
|
|
"--type-add=js=.js,.js.erb"
|
|
"--type-add=ruby=.jbuilder,.rabl"
|
|
"--type-add=html=.haml,.hamlc,.jade"
|
|
"--type-add=css=.sass,.scss,.styl"
|
|
"--type-set=coffee=.coffee"
|
|
"--type-set=cucumber=.feature")))
|
|
(setq ack-project-root-file-patterns
|
|
(quote (".project\\'"
|
|
".xcodeproj\\'"
|
|
".sln\\'"
|
|
"\\`Project.ede\\'"
|
|
"\\`.git\\'"
|
|
"\\`.bzr\\'"
|
|
"\\`_darcs\\'"
|
|
"\\`.hg\\'"
|
|
"\\`Gemfile\\'"
|
|
"\\`Rakefile\\'"
|
|
"\\`Makefile\\'")))
|
|
(setq ack-prompt-for-directory 'unless-guessed)
|
|
|
|
;; Set global keybinding
|
|
(global-set-key (kbd "C-c C-a") 'ack)
|
|
|
|
(provide 'siren-full-ack)
|
|
;;; siren-full-ack.el ends here
|