This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-07
Channels
- # beginners (4)
- # boot (186)
- # cider (68)
- # cljsjs (2)
- # cljsrn (6)
- # clojure (103)
- # clojure-dev (1)
- # clojure-russia (117)
- # clojurescript (40)
- # community-development (31)
- # cursive (2)
- # data-science (7)
- # datomic (6)
- # devcards (2)
- # editors-rus (2)
- # emacs (2)
- # jobs (2)
- # ldnclj (2)
- # lein-figwheel (41)
- # off-topic (5)
- # om (50)
- # overtone (2)
- # re-frame (36)
- # reagent (1)
- # spacemacs (3)
- # yada (2)
@malabarba: cider-mode
is not enabled in cider-repl-mode
, because many of the commands are pointless in the REPL
hi there! with new cider and clj-refactor i get error Need package "spinner-1.5", but only 1.4 is available
and i can't find spinner-1.5 in elpa.
I’m guessing @malabarba released the new spinner quite recently
melpa, right, but refreshing packages dosn't solve the problem (
ok, will wait for update ) thanks
@malabarba: you should start tagging the releases - right now it’s hard to figure out which release is which
@bozhidar sorry. I wasn't going to bump the dependency just yet. That's what I get for coding late.
nice, thanks
is there a way to run lein clean
inside cider somehow?
or inside emacs for that case, I just don't want to switch windows to a terminal
@anmonteiro: if you use projectile it would be pretty easy
C-c p !
+ "lein clean", or you could write a elisp fn to do that and bind to some key combo
@pandeiro: I sure have it installed, but I'm still rather new to emacs
let me try that
I understand
it works, thanks!
I'll have to look into other projectile features for sure
C-c s g
doesn't seem to be defined in my setup
thanks
(defun instashell (pre)
"Opens a shell buffer based in the current directory and auto-named
to prevent buffer name clashing on the *shell* buffer name.
With a prefix argument, uses projectile to navigate to the project
root and open the shell buffer from there."
(interactive "P")
(if pre
(let* ((default-directory (projectile-project-root))
(project-name (nth 1 (reverse
(s-split "/" (projectile-project-root))))))
(shell (concat "*shell:" project-name "*")))
(shell (concat "*shell:" default-directory "*"))))
(global-set-key (kbd "C-c s") 'instashell)
oh wow
I can't execute that
because I have mapped RET to 'paredit-newline. now I have to figure out whats the default command for pressing RET
in the minibuffer
@pandeiro: curious how you'd call that with a "prefix" ?
@anmonteiro: C-u C-c s
I'll make sure to add that to my packages
that keybinding doesn't do anything for me though, I might be missing yet another package?
you will have needed to eval the function and global-set-key
expression of course in your current emacs session after adding it
ah you meant you bound that key binding to call the function
Ah. I knew about C-u
but not the nomenclature, that's what a prefix is then
that answers my question
you've been really helpful, thanks!
@anmonteiro: my pleasure, good luck
@anmonteiro: I noticed you've been having problems because you've bound RET to something else
This way, RET should only invoke paredit-newline
in situations where it would normally invoke newline
. So it won't override things like repl input or minibuffer input
@malabarba: I'll try that and let you know. thanks!
@malabarba: it throws Symbol's value as variable is void: paredit-mode-map
@malabarba: hrm, this worked:
(eval-after-load 'paredit
#'(define-key paredit-mode-map [remap newline-and-indent] 'paredit-newline))
pretty cool, thanks