Fork me on GitHub
#spacemacs
<
2017-01-25
>
jamieorc00:01:06

Editors such as Textmate and Atom have a command such as “list symbols” in file that allow one to pop up a list of symbols in current buffer, such as the ruby methods in it, and use fuzzy completion to select the symbol and go to it. Does Spacemacs have this? I can’t find it if it does.

potapenko01:01:32

SPC s s “defn”? 🙂

zane02:01:01

@jamieorc, does SPC j i (and its cousin SPC j I) do what you want?

jamieorc03:01:47

@potapenko yeah, I discovered that yesterday, but not quite the same thing

jamieorc03:01:11

@zane cheers! That’s the one. I can’t believe I didn’t see it. Do you know if there’s a way to not display the filename in the results? totally pointless when I’m searching the file

jamieorc03:01:28

oh never mind, that’s not the filename, that’s the class name

jamieorc03:01:40

Another question: I have a custom bg1 color for spacemacs-light theme, but I don’t know how to set it for just the light theme. If I switch to dark, it’s got that bg color. What syntax do I use to switch on light/dark theme?

practicalli-johnny10:01:05

@jamieorc as spacemacs theme is a package, to tweak the theme I simply hacked it, making a copy first and putting my changes into version control. So long as the Spacemacs theme package is not updated, my changes stay. Its a terrible hack and I should create my a package for my own theme instead I just wanted to change the dark theme background (to be fully black), so edited .emacs.d/elpa/spacemacs-theme-20160909.445/spacemacs-common.el and changed the values in defun create-spacemacs-theme.

Sam H12:01:33

Anyone know if there is better diff highlighting for when tests fail?

alandipert13:01:06

@zane you changed my life with your SPC j magicks

zane13:01:00

I know, right @alandipert? They should advertise that feature more! 😄

jamieorc14:01:52

Glad I asked about it 😄

jamieorc14:01:39

I didn’t even notice the SPC j I last night. That is one awesome feature

alandipert15:01:59

oh man - with SPC j I i lashed together a ctags-like situation

alandipert15:01:06

good for projects with small # of files anyway, based on http://emacs.stackexchange.com/a/625

alandipert15:01:22

do SPC u SPC SPC dired and set the ls switches to -alR

alandipert15:01:53

then in the dired buffer % m to mark all .*.clj files, then run dired-find-marked-files to open them all

alandipert15:01:29

then use SPC j I to search through all the defs in the project 😁

eggsyntax15:01:36

I missed the original discussion, but FWIW I just use g d for evil-smart-goto-definition & it works fine for me, at least in clj. Less so with cljs, IIRC, although it's been a fair while since I've tried it w/ cljs.

Sam H16:01:55

eggsyntax: nice, I had been using SPC-m-g-g for definition jumping

alandipert15:01:35

that's an awesome one too, SPC j I/i is more of a fuzzy search thing

alandipert15:01:46

a slightly smarter grep

alandipert15:01:15

umm you guys? SPC j I/i works in markdown too swoon

alandipert15:01:36

hm, anyone know why prefix cmd wouldn't work with a spacemacs key binding? or if there is a way to fix?

alandipert15:01:55

ie SPC u SPC SPC dired works, but SPC u SPC a d does not

eggsyntax15:01:39

The latter is a custom one you're adding?

alandipert15:01:10

it's in there already i think

alandipert15:01:33

ie SPC a d is analagous to M-x dired

alandipert15:01:48

seems like something is lost across the spacemacs binding of it

eggsyntax15:01:51

I seem to recall having to do something different to add SPC-based key bindings. Lemme see if I can find it. How are you trying to set it?

alandipert15:01:12

well i'm not adding anything, at this point

alandipert15:01:24

to test: if you do SPC u M-x dired you get a prompt to set the ls switches

eggsyntax15:01:29

Oh, ok. Nevermind, then 🙂

alandipert15:01:38

no such prompt with SPC u SPC a d

alandipert15:01:46

np, i'll snoop around

alandipert16:01:14

i may just need to add my own SPC o ... binding to call dired directly with prefix arg

eggsyntax16:01:29

I'm not quite clear on what you're saying, I think, but I get this with SPC u SPC a d:

alandipert16:01:01

right - now try SPC u M-x dired

alandipert16:01:38

actually that's a slightly different thing, but i'm satisfied not to keep diggin lol

jamieorc16:01:46

today is the first day I can actually use Spacemacs instead of Atom for my Rails work, thanks to SPC j i, and , g g among others. Dang

Sam H16:01:22

@jamieorc if you're in evil mode you can use g d instead of , g g (thanks @eggsyntax )

jamieorc16:01:54

@shan thanks, I just started using that 🙂

Sam H16:01:20

I was actually using SPC m g g before 😅

jamieorc16:01:32

is it possible to scroll past top like with bottom? I lock my line to middle of screen and would love it to work at top of file too

Sam H16:01:52

never used that myself

eggsyntax19:01:54

Just updated for the first time in a good while to 0.200. Good lord, lots of changes. Has anyone here made the helm-to-ivy switch? If so, how has that been? Or if you've decided you're not going to switch, why not?

bja20:01:54

I haven't investigated it. I've been running develop for a year. helm hasn't angered me enough to even consider other things. Is there a particular reason you're considering the switch?

eggsyntax20:01:14

Release notes for 0.200 had the line "Helm has a new friend in this release, it is called ivy and it has more and more adopters." Looked into it slightly, & it sounds like it's significantly faster (I do notice helm being somewhat slow). But mostly just curious.

eggsyntax20:01:54

At this point leaning toward sticking w/ helm, though, since it also sounds like it would involve learning some new workflow, & I'm not dissatisfied with helm.

alandipert20:01:31

i hope spacemacs becomes more stable over time

alandipert20:01:35

ui churn is the worst

alandipert20:01:49

tho i did the .200 update a month or two ago and survived

eggsyntax20:01:12

Very happy to say that that seems to be their plan. <searches for quote>

eggsyntax20:01:39

"For 0.201 we plan to introduce stable snapshots of elpa repositories, a new installation of Spacemacs will always install packages from this stable source. Users will then be able to manually trigger an upgrade of packages if they want the bleeding edge versions but they will always be able to rollback to the previous stable state if required." (sec 4.1 of "what's new")

eggsyntax20:01:03

Although maybe you meant "stable" in a somewhat different sense.

eggsyntax20:01:35

Personally my favorite would be if SM did something like long-term-support releases.

eggsyntax20:01:46

So I could only change once a year or so.

alandipert20:01:50

yeah i want the bugfixes but not the new keybindings

bja21:01:30

Huh, maybe my system is making up for helm being slow.

jamieorc22:01:48

One of the weird things about using Spacemacs in spacebar mode is that many modal windows want emacs key combinations and then my hands get confused. I would rather have them operate the same and use “esc, esc” to get out. Just for consistency.