Created
January 20, 2012 11:09
-
-
Save malthe/1646732 to your computer and use it in GitHub Desktop.
Nuke dashes in Emacs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(defun nuke-dashes () | |
(interactive) (save-excursion (goto-char (point-min)) (while (re-search-forward "^-" nil t) (replace-match "")))) | |
(global-set-key "\C-d" 'nuke-dashes) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment