Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: ef21bb7cae
Fetching contributors…

Cannot retrieve contributors at this time

51 lines (37 sloc) 1.353 kb
(require 'find-file-in-project)
;; Use eproject to find project root
(setq ffip-project-root-function 'eproject-root)
;; No need to be stingy
(setq ffip-limit 4096)
;; Helper methods to create local settings
(defun ffip--create-exclude-find-options (names)
(mapconcat (lambda (name)
(concat "-not -regex \".*" name ".*\"")) names " "))
(defun ffip-local-excludes (&rest names)
"Given a set of names, will exclude results with those names in the path.
(ffip-local-excludes \"target\" \"overlays\")
(set (make-local-variable 'ffip-find-options)
(ffip--create-exclude-find-options names)))
(defun ffip-local-patterns (&rest patterns)
"An exhaustive list of file name patterns to look for.
(ffip-local-patterns \"*.js\" \"*.jsp\" \"*.css\")
(set (make-local-variable 'ffip-patterns) patterns))
;; Function to create new functions that look for a specific pattern
(defun ffip-create-pattern-file-finder (&rest patterns)
(lexical-let ((patterns patterns))
(lambda ()
(let ((ffip-patterns patterns))
;; Default excludes - override with ffip-local-excludes
(setq ffip-find-options
(provide 'setup-ffip)
Jump to Line
Something went wrong with that request. Please try again.