Let's say I have this:
(defn -main [& args]
(my-func|tion 5) (my-function-2 "hello")
(third-function-of-mine nil))
where | is my cursor.
And I want to delete (my-function 5).
So in the end I will have this:
(defn -main [& args]
| (my-function-2 "hello")
(third-function-of-mine nil))
So basically I need to kill the whole function including the parentheses.
How to do that in Spacemacs or Emacs? I am using evil mode, but even if you are using the standard shortcuts any help is appreciated.
da(.C-M-u C-M-n C-wshould do it with vanilla emacs. For the first two keybindings, see Moving in the Parenthesis Structure (or, better, read it in Emacs itself:C-h i g(emacs)RET i paren TABshould take you to the same section of the manual). The third,C-w, is the standardkill-regioncommand.[ m wiflispyis active ;-)