This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-07-18
Channels
- # aleph (12)
- # beginners (31)
- # boot (67)
- # cider (17)
- # cljs-dev (14)
- # clojure (111)
- # clojure-dev (1)
- # clojure-france (4)
- # clojure-gamedev (1)
- # clojure-italy (49)
- # clojure-nl (3)
- # clojure-poland (2)
- # clojure-russia (18)
- # clojure-spec (15)
- # clojure-uk (68)
- # clojurescript (33)
- # core-typed (1)
- # datomic (15)
- # emacs (3)
- # graphql (4)
- # hoplon (36)
- # leiningen (3)
- # lumo (44)
- # mount (2)
- # off-topic (46)
- # om (21)
- # onyx (47)
- # parinfer (22)
- # pedestal (21)
- # protorepl (4)
- # quil (4)
- # re-frame (15)
- # reagent (4)
- # ring-swagger (9)
- # rum (27)
- # spacemacs (11)
- # vim (7)
- # yada (8)
I'm trying to refactor a symbol (rename), but the behavior is a bit unexpected:
1. SPC m r r s
2. symbol to replace
3. new name
4. I get a message that there were 5 occurences found, and in the file I'm working in, it seems it is renamed
However... what actually seems to have happened:
* a new file with the same name in a different directory is created
* the original file is still the same
or: I have 2 files:
1. <project-home>/src/clj/core.clj
2. .boot/cache/..../718/-jnm801/my-project/core.clj
How to make this temporary change permanent?
2nd unrelated question: Can clojure/fancify-symbols
be extended or customized?
I really like a more symbolic code - it's easier/more relaxed to read. I had some other symbols 'fancified' in vim. I'm working about a year in spacemacs now, and I really miss some of them. The most relevant once, to me:
* and
∧
* or
∨
* not
¬
* let
:=
* recur
⋯
* ->
→
* ->>
↠
(and I used some for core.async
as well)
@kurt-o-sys this looks pretty easy to adapt: https://github.com/syl20bnr/spacemacs/blob/master/layers/%2Blang/clojure/funcs.el#L12
@bja right... so, you mean forking spacemacs and changing that function? (I'm not used to configuring emacs/spacemacs). Or can I just override/extend that function somewhere?
(I mean, forking the whole thing just to add a few lines of code does seem a bit weird to me, so I suppose there's a better way)
If you create something you want to make part of Spacemacs, then the video I posted here on the 14th walks you through adding a change to Spacemacs. Almost all of it can be done inside Spacemacs.
Allright, thx. That'll do, I guess. 👍
(eval-after-load 'clojure-mode
'(font-lock-add-keywords
'clojure-mode `(("(\\(fn\\)[\[[:space:]]" ...
seems to work. Thanks for pointing me there!