Fork me on GitHub
#spacemacs
<
2017-09-01
>
eggsyntax00:09:31

Nice! Somehow I got the impression that you wanted to increase the height of blank lines, although looking back I have no idea why 😆

eggsyntax00:09:45

Wow, the image looks great, I may end up using it myself.

reefersleep10:09:27

Might test this. Don’t know yet if it’d mess up my reading flow to have varying line heights.

binora11:09:25

hey, spacemacs newbie here. I've added clojure mode in dot spacemacs. But still I cant to seem to jump to resource or see autocompletion in a clojure project connected to my repl. Please help

Sam H11:09:01

have you loaded the file into the repl? I use SPC m s b

Sam H11:09:21

should then have autocompletion and also be able to jump to definition with g d

binora11:09:47

jumping to definition works

binora11:09:59

after i load the file into the repl

binora11:09:10

but autocompletion doesnt

Sam H11:09:26

might have to add the auto-completion layer. I’ve got

(auto-completion :variables
                      auto-completion-enable-help-tooltip)
in my .spacemacs file

binora11:09:05

where in .spacemacs ? in user-config or user-init ?

Sam H11:09:21

it would be in the same place as where you added the clojure layer

Sam H11:09:05

dotspacemacs-configuration-layers
   '(
  ...
     (auto-completion :variables
                      auto-completion-enable-help-tooltip)

     clojure
     )

Sam H11:09:49

which is in dotspacemacs/layers()

binora11:09:29

ooh. okay . i did that. but still not working.

practicalli-johnny11:09:46

@binora after you have added the auto-complete layer you need to reload the .spacemacs configuration with either SPC f e R or restart spacemacs SPC q r

binora11:09:40

i've done that already . jump to definition works. but auto complete doesnt

practicalli-johnny11:09:37

@binora I use the following options for the auto-complete layer, which includes snippets and sorts auto-complete results by usage

(auto-completion :variables
                      auto-completion-enable-help-tooltip t
                      auto-completion-enable-snippets-in-popup t
                      auto-completion-enable-sort-by-usage t)

practicalli-johnny11:09:48

@binora do you have a repl running ?

binora11:09:02

yes. i'll try your options.

binora11:09:36

it worked.

practicalli-johnny11:09:47

The options shouldnt make a difference. I would restart spacemacs. Then load in either the project.clj file or a .clj source file and then run the repl ( I use , ' to start the repl in Evil normal mode or Alt-RET ' in holy mode

practicalli-johnny11:09:00

Ah great, then ignore that last comment.

practicalli-johnny11:09:03

Auto-complete sometimes takes a second or two extra to show results. You should see the names of anything you define in autocomplete, but I think only once you have evaluated them (I must check as to exactly when something becomes part of the auto-complete though for my own curiosity)

binora11:09:29

yes it does. as of now it doesnt show up suggestions for the function definitions i just evaluated

practicalli-johnny11:09:38

It may be just a little slow the first time around, but any of your def and defn names should appear in auto-complete (eventually)

binora11:09:34

i'll check for that.

binora11:09:42

thanks for the quick response.

practicalli-johnny11:09:26

if you see entries like defn -> defn then that is a snippet. If you are not aware, they are little templates for common bits of code you can tab through to complete the template with specific names and values, etc.

binora11:09:05

that's great. I'll have a look

jeff.terrell12:09:54

I'm not sure about the autocomplete functionality you're looking for, but I'm pretty sure vim-style simple word completion works in evil-mode out of the box. Try C-n and C-p in insert mode when you've started typing a word.

jeff.terrell12:09:36

It's not quite as nice as how vim does it (e.g. C-p doesn't strictly reverse C-n, which can be confusing), but it's functional, and I use it frequently.

claudiu15:09:01

Is there any way to make autocomplete ignore ':' and namespaces ? :)

pesterhazy16:09:18

@jeff.terrell wow I didn't know about ^N/^P

dominicm16:09:03

If that's new, I suspect you'll get a kick out of Ctrl-x Ctrl-f

eggsyntax17:09:53

Couple of nice useful tips today 🙂

eggsyntax17:09:06

Just mapped <TAB> in insert mode to evil-complete-next -- totally didn't know about that either, I've been using the heavier-weight autocomplete stuff.

eggsyntax17:09:21

I guess at the CIDER level IIRC

jeff.terrell17:09:00

@pesterhazy - Yeah, pretty neat huh? simple_smile evil's attention to detail to include little vim features like this is what made it [more] viable for me to switch. Pretty impressive work.

jeff.terrell17:09:02

That said… @dominicm, is that a Spacemacs thing or a Vim thing? I'm familiar with C-x C-l in Vim, and it's one thing I miss in spacemacs/evil-mode. When I tried C-x C-f in evil's insert mode, it just runs spacemacs/helm-find-files .

dominicm17:09:51

That's a vim thing, I presumed it would be the same, oops.

jeff.terrell17:09:03

Ah, you got my hopes up… simple_smile

pesterhazy17:09:44

^X^F is the only vim feature I miss in spacemacs

pesterhazy17:09:16

so useful to go /etc/apac^X^F

eggsyntax17:09:52

I usually just load files with SPC p h for projectile-helm, which has pretty good soft matching (presupposes that you’re in something vaguely project-like).

eggsyntax17:09:14

Or SPC f r usually, if I’m not in a project.

jeff.terrell18:09:02

I thought C-x C-f in Vim would insert a path and file, not switch to editing that file.

jeff.terrell18:09:18

Now I need to go figure out how SPC p h is different from the SPC p f that I normally use…

eggsyntax19:09:22

Ah, gotcha, I guessed wrong on what it meant 😉