This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-09-01
Channels
- # aleph (7)
- # bangalore-clj (1)
- # beginners (89)
- # boot (5)
- # clara (21)
- # cljs-dev (2)
- # cljsrn (57)
- # clojure (58)
- # clojure-austin (1)
- # clojure-conj (1)
- # clojure-italy (5)
- # clojure-losangeles (3)
- # clojure-russia (4)
- # clojure-sanfrancisco (4)
- # clojure-spec (31)
- # clojure-uk (67)
- # clojurebridge (4)
- # clojurescript (56)
- # cursive (92)
- # data-science (4)
- # datomic (15)
- # emacs (23)
- # events (1)
- # fulcro (121)
- # gorilla (2)
- # jobs-discuss (1)
- # juxt (1)
- # lambdaisland (6)
- # lumo (13)
- # off-topic (11)
- # om (1)
- # onyx (17)
- # overtone (5)
- # parinfer (9)
- # planck (3)
- # re-frame (21)
- # reagent (95)
- # ring-swagger (7)
- # spacemacs (58)
- # vim (13)
- # yada (2)
Nice! Somehow I got the impression that you wanted to increase the height of blank lines, although looking back I have no idea why 😆
looks good!
Might test this. Don’t know yet if it’d mess up my reading flow to have varying line heights.
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
might have to add the auto-completion
layer.
I’ve got
(auto-completion :variables
auto-completion-enable-help-tooltip)
in my .spacemacs
filedotspacemacs-configuration-layers
'(
...
(auto-completion :variables
auto-completion-enable-help-tooltip)
clojure
)
@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
@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)
@binora do you have a repl running ?
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
Ah great, then ignore that last comment.
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)
yes it does. as of now it doesnt show up suggestions for the function definitions i just evaluated
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)
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.
I wrote a quick overview of snippets here: http://jr0cket.co.uk/2016/07/YASnippets-for-faster-clojure-development.html
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.
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.
@jeff.terrell wow I didn't know about ^N/^P
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.
@pesterhazy - Yeah, pretty neat huh? 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.
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
.
Ah, you got my hopes up…
^X^F is the only vim feature I miss in spacemacs
so useful to go /etc/apac^X^F
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).
I thought C-x C-f
in Vim would insert a path and file, not switch to editing that file.
Now I need to go figure out how SPC p h
is different from the SPC p f
that I normally use…