Skip to content

Instantly share code, notes, and snippets.

Created May 2, 2017 11:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/055a9d62f9fc824153599724b8f44d57 to your computer and use it in GitHub Desktop.
Save anonymous/055a9d62f9fc824153599724b8f44d57 to your computer and use it in GitHub Desktop.
Combining query replace with projectile
(setq my-projectile-query-replace-files (list "\\.py$" "\\.el$" "\\.c$" "\\.cc$"))
(defun my-projectile-query-replace (from to)
(interactive
(let (initial)
(setq initial (read-string "Replace:"))
(list initial (read-string "With:" initial))))
(findr-query-replace from to (s-join "\\|" 'my-projectile-query-replace-files) (projectile-project-root)))
(defun my-projectile-query-replace (from to)
(interactive
(let (initial)
(setq initial (read-string "Replace:"))
(list initial (read-string "With:" initial))))
(findr-query-replace from to (s-join "\\|" 'my-projectile-query-replace-files) (projectile-project-root)))
@avatar-lavventura
Copy link

I am getting Wrong type argument: sequencep, my-projectile-query-replace-files error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment