Questions tagged [deletion]
The deletion tag has no summary.
51 questions
1 vote
1 answer
122 views
Hooking backspace character
I have already found the proper hook for when the character is inserted(post-self-insert-hook), but how to hook when a character is deleted? Also, how to get the character that was deleted, I am ...
0 votes
1 answer
289 views
How do I *force* remove a package?
I've been trying to delete git-commit since it is now distributed as a part of Magit. I've checked this answer and the package menu guide, but I can't seem to find a way to force uninstall a package. ...
1 vote
1 answer
353 views
Delete trailing whitespace on save, but only for yaml files
I would like to run delete-trailing-whitespace for files with extension .yaml only. Can someone please supply the elisp to do this?
0 votes
3 answers
204 views
How to delete all the files matching regular expression in elisp?
I want to make some clean-up with auto-generated files. How can I delete all the files matching some regexp mask from within elisp? As an example of desired functionality... Something like the line ...
2 votes
2 answers
212 views
Automated trim of 28 million text records
I have a plain text data file, consisting of 28 million tab-delimited records, each containing nine fields. The left ends of the first three records look like this: I would like to truncate each of ...
0 votes
0 answers
44 views
How to delete a function on which a cursor is in Spacemacs?
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 ...
0 votes
2 answers
319 views
How to unbind and then repurpose a default keybinding?
I want to test out a few alternative keybinding setups but I’m not sure what the simplest/most effective way to do that is. I would like to have it so that instead of C-d being forward delete ("...
0 votes
0 answers
33 views
Undo insertion and deletion in one step when undoing overwrite of selection
Undoing the insertion of a character while the region is active (and delete-selection-mode is non-nil) requires two steps: the first to undo the insertion and the second to restore the deleted region. ...