Created
May 2, 2017 11:29
-
-
Save anonymous/055a9d62f9fc824153599724b8f44d57 to your computer and use it in GitHub Desktop.
Combining query replace with projectile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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))) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I am getting
Wrong type argument: sequencep, my-projectile-query-replace-files
error