/ Published in: Emacs Lisp

A solution to the 'strip-trailing-whitespace example found: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
(defun strip-trailing-whitespace () "remove all whitespace from the end of lines in the entire buffer" (interactive) (save-excursion (goto-char (point-min)) (while (re-search-forward "\\s-+$" nil t) (replace-match ""))))
URL: http://stackoverflow.com/questions/41522/tips-for-learning-elisp/59589#59589
Comments
