Fork me on GitHub
#emacs
<
2018-05-19
>
vemv06:05:41

is there a command for "pulling" a sexpr from the next line, bringing it to the current line, without changing any nesting?

vemv06:05:53

(defn home-page
  [request]

vemv06:05:05

(defn home-page [request]

vemv06:05:27

...guess it can be implemented easily, just wondering if there's a readily available function

munen06:05:43

@vemv Not exactly what you're asking, but I'm using it for your use-case: If you use evil, then you can pull any line (not just sexps) from the line below with a J.

vemv06:05:43

yeah not quite, but good to know! :thumbsup:

soulflyer07:05:54

@vemv I use live-delete-whitespace-except-one which comes from emacs-live

vemv07:05:26

thanks, will be taking a look!

soulflyer07:05:27

(defun live-delete-whitespace-except-one ()
  (interactive)
  (just-one-space -1))

soulflyer07:05:01

just-one-space is part of standard emacs I think, so should be easy to implement

vemv07:05:49

Tried out, fantastic! 🍻