Skip to content

Instantly share code, notes, and snippets.

@malthe
Created January 20, 2012 11:09
Show Gist options
  • Save malthe/1646732 to your computer and use it in GitHub Desktop.
Save malthe/1646732 to your computer and use it in GitHub Desktop.
Nuke dashes in Emacs
(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