/ Published in: Emacs Lisp
Save to your folder(s)

A solution to the 'strip-trailing-whitespace example found:

Copy this code and paste it in your HTML
  1. (defun strip-trailing-whitespace ()
  2. "remove all whitespace from the end of lines in the entire buffer"
  3. (interactive)
  4. (save-excursion
  5. (goto-char (point-min))
  6. (while (re-search-forward "\\s-+$" nil t)
  7. (replace-match ""))))


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.