Fork me on GitHub
#spacemacs
<
2019-10-09
>
murtaza5215:10:45

I have some enviroment variables that I am setting in my zshrc script. I am starting my clj project using clj-jack-in, however those variables are not available to the clj project. How do I make them available ?

spfeiffer16:10:05

Spacemacs keeps the active env variables in its own file. You need to update them there, too.

murtaza5205:10:35

@U067P1FT2 thanks for pointing out

Mario C.17:10:00

I am using two frames side by side and in one frame when I use SPC-w-c-c centered buffer mode on a window its makes the current frame the window is on move on top of the other frame. Is this expected behavior?

cjsauer19:10:45

👋 all, following these instructions here: https://practicalli.github.io/spacemacs/refactor/within-a-project.html I can’t quite seem to get this working. F3 opens the search results in a buffer for editing, but this buffer appears to be read-only, so I can’t make modifications via iedit :thinking_face:

cjsauer19:10:59

Related to this, helm-projectile-grep seems to be searching a lot of my compiled JS output, which bogs down the search buffer quite a bit…can I get it to honor .gitignore perhaps?

zane20:10:50

spacemacs/search-project-auto, which is bound to SPC / in evil mode, should respect your .gitignore.

cjsauer20:10:04

Did the trick, thank you 🙏

4
cjsauer20:10:44

Ah okay, I found the solution. Those docs must be stale. Here’s what I did: 1. SPC / 2. Enter search query 3. Press C-c C-e to capture search results in an edit window 4. Make edits as needed (e.g. using iedit SPC s e on highlighted text) 5. Commit the changes with C-c C-c

4
practicalli-johnny21:10:35

F3 only saves the results in a buffer, you cannot use those results to make changes throughout the project. F4 is the action you need to make the changes. As you also found, rather than C-z followed by F4 you can use C-c C-e instead. I am now thinking that using C-c C-e is a nicer practice, so will update that page in the book. I'll put the previous approach as an alternative

practicalli-johnny22:10:58

@cjsauer I've updated the docs to use C-c C-e rather than C-z followed by F4 as it seems a nicer approach and should prevent confusion between the actions F3 that only saves the results and F4 that allows for editing.