Last active
September 27, 2023 02:38
-
-
Save xenodium/81afee0069605691e52e2d14536ccaa0 to your computer and use it in GitHub Desktop.
Eval commented out code
This file contains 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
(defun ar/eval-uncommented-region (start end) | |
(interactive "r") | |
(let ((text (buffer-substring-no-properties start end))) | |
(with-temp-buffer | |
(insert text) | |
(emacs-lisp-mode) | |
(uncomment-region (point-min) (point-max)) | |
(eval-buffer) | |
(message "Evaluated")))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment