Created
March 25, 2017 00:12
-
-
Save Wilfred/3d89582fe87700be89d3818fdb8c6fdc to your computer and use it in GitHub Desktop.
remove text properties
This file contains hidden or 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
;; 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