Fork me on GitHub
#emacs
<
2019-10-03
>
andrea.crotti08:10:43

quite often I want to do a projectile action on another project from the one I'm on

andrea.crotti08:10:24

for example search a string, and at the moment I always have to - switch project with projectile-switch-project - call the desired projectile action

andrea.crotti08:10:06

I wonder if I could merge the two things, I could just redefine other key-strokes merging the switch and the actual action I need

andrea.crotti08:10:37

anyone has a better solution though? Anyone else has the same "problem"?

jumar11:10:13

I don't know but for "projects" I use often (meaning leiningen/git projects) I just defined a single projectile project by putting them into a single directory and creating .projectile

mpenet12:10:04

I have a macro that handles a special form inside its body and I would like to have a style/indent for it, can I do that knowing it is not defed anywhere and I would like to avoid to bake it inside my emacs config and make it project wide?

mpenet12:10:40

basically if I can fake a :style/indent somehow for it that would be perfect

practicalli_john13:10:48

@andrea.crotti do you have layouts installed (its part of Spacemacs by default). You can have a layout for each project and use SPC l to switch between them, or if you have just two projects SPC l TAB will switch between them. Then you can call a project specific action. As @jumar mentioned, I sometimes create a blank .projectile file in the root of all my projects and then I can run searches through them. Then just delete that file when I am done to go back to specific git projects.