Closed mason-stewart closed 11 years ago
@masondesu By "outside of an expression" do you mean a comment? Is there any other context?
Hey @xpe! Specifically, I mean "not inside of any parens, curly or square brackets" when I say "outside of an expression". Does that make sense?
I implemented it in paredit-kill as I didn't want to rely on system behaviour. Also, paredit-kill removing to the end of the line outside an expression is part of the original paredit, so it makes sense to implement it.
In OS X,
ctrl+k
is a system-wide command for deleting from the cursor to the end of line, andctrl+shift+k
will kill the entire line. This was being overridden by theparedit_kill
andparedit_kill_expression
key-mappings. Theparedit_kill
andparedit_kill_expression
commands are mega-helpful, but even in LISP, there are times that you may want to kill to the end of the line while not inside of an expression.My solution was simply to check whether or not the cursor is inside of an expression before using Paredit's function. If you're outside of an expression, the normal behavior for your platform will occur.
Thanks!