Skip to content

Instantly share code, notes, and snippets.

@Wilfred
Created March 25, 2017 00:12
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Wilfred/3d89582fe87700be89d3818fdb8c6fdc to your computer and use it in GitHub Desktop.
Save Wilfred/3d89582fe87700be89d3818fdb8c6fdc to your computer and use it in GitHub Desktop.
remove text properties
;; Loosely based on `erc-remove-text-properties-region'.
(defun wh/remove-text-properties-region ()
"Remove all text properties from the current buffer."
(interactive)
(let ((inhibit-read-only t))
(set-text-properties (point-min) (point-max) nil)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment