Fork me on GitHub
#cider
<
2015-10-06
>
bozhidar08:10:53

@jcsims: keep in mind this is something that’s mostly meaningless in 0.10

bozhidar08:10:20

in older releases the current connect was “static"

bozhidar08:10:32

in 0.10 it’s dynamically determined by the project you’re in

bozhidar08:10:05

we might keep the old behaviour as an option, but I believe the new behaviour is definitely what most people working with multiple connections would prefer

andrea.crotti13:10:45

is there a function somewhere in cider maybe to go to the next function?

andrea.crotti13:10:07

I like to bind that to M-n/M-p to just scroll down

andrea.crotti13:10:13

staying on the function definitions

malabarba14:10:34

andrea.crotti: You could use end-of-defun

malabarba14:10:00

Though it's not exactly what you're asking for

malabarba14:10:14

@andrea.crotti: How about this:

malabarba14:10:19

(defun next-defun ()
  (interactive)
  (end-of-defun 2)
  (beginning-of-defun 1))

andrea.crotti14:10:29

ah yes that works already @malabarba thanks

andrea.crotti14:10:47

I just have to do for previous defun and is good to go

andrea.crotti14:10:56

can probably work for all Lisps not just Clojure

andrea.crotti14:10:44

don't need the interactive if I bind it to some to some key right?

malabarba14:10:15

The interactive spec is needed for both M-x and for keybinds

malabarba14:10:29

You don't need it if you're only going to call it in lisp-code

malabarba14:10:53

And it should work for a lot of programming languages, not even just lisps :)

bozhidar15:10:38

it’s odd we don’t have forward-defun and backward-defun

bozhidar15:10:50

might be useful to add them to Emacs itself

malabarba15:10:19

beginning-of-defun is pretty much a backward-defun

malabarba15:10:35

But forward-defun is definitely something I miss sometimes

malabarba15:10:52

I just don't know to what key I'd bind it

malabarba15:10:05

Maybe just remap end-of-defun :P