Fork me on GitHub
#spacemacs
<
2017-03-15
>
jeff.terrell00:03:25

I've been having an issue recently where my Spacemacs will hang for like 10+ seconds if I let it bring up a keystroke completion menu. For example, if I type SPC f and wait for a second, it hangs for a while to show all the commands that begin with f. Anybody else seen this issue?

ag00:03:22

@jeff.terrell in which major mode you’re experiencing this?

ag00:03:45

I used to have something like this and it turned out to be issue with semantic

jeff.terrell00:03:17

@ag I don't think it matters which major mode I'm in, but let me try to verify that. 😬

jeff.terrell00:03:29

Is semantic a layer in Spacemacs or something else?

ag00:03:50

semantic is a built-in package in Emacs

ag00:03:37

at some point it wasn’t working nicely with company

jeff.terrell00:03:13

Hmm, it doesn't seem to be happening (as painfully anyway) at the moment. I wonder if a cache is warm somewhere. I'll keep an eye on which major mode I'm in when I experience it again.

jeff.terrell00:03:10

How would I test whether semantic is an issue? Maybe M-x semantic-mode?

jeff.terrell00:03:50

Well, but when I run that it tells me it's enabled, implying that it's disabled by default. So I'm thinking that's not the issue.

ag00:03:05

open a emacs-lisp file and try to write a function. just any function. see if the completion works fine

jeff.terrell00:03:48

Hmm, by completion do you mean C-n and C-p in evil mode? Or something else? Because those work fine.

ag01:03:02

do you have auto-completion layer added?

jeff.terrell01:03:56

Gotta run for now. Thanks for the help!

iGEL14:03:47

Hello. I'm a very recent neovim convert, still trying to find my way around. In vim, I heavily used tabs for almost everything. So far I used buffers, which works pretty nice, but probably I can get something better. Any recommendations?

leo15:03:31

In my case I use to tie buffers by projects. But certainly there are more use cases.

iGEL15:03:58

Thanks, I'll read these

jeff.terrell16:03:52

@igel - I made the same transition a while back. Now I like what spacemacs provides better than vim's tabs, but it took me some getting used to.

jeff.terrell16:03:51

Some key sequences I use all the time: - SPC TAB is like :bp in vim: switch to the previous buffer. - SPC b b - switch to a buffer by fuzzy matching on the name. - SPC p f - find a file with fuzzy matching in the current project. - :A - switch between test and implementation (in some languages anyway).

jeff.terrell16:03:53

Also SPC b d deletes the current buffer, which keeps the set of buffers you're matching against with SPC b b manageable. Similarly, SPC p k deletes all buffers for the current project. Although, you probably don't need to be as concerned about open buffers as I am. :-)

Sam H16:03:10

:A did seem to work for me in clojure. Ended up finding out that SPC p T is projectile-find-test-file and SPC p a is projectile-find-other-file (which goes to the src file if you're in a test file)

iGEL16:03:32

@jeff.terrell Thanks. The first 3 I already found, but :A and the others are new to me

Sam H16:03:42

actually SPC p a toggles between src and test file