Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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

This comment has been minimized.

Copy link

@avatar-lavventura avatar-lavventura commented Aug 2, 2020

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