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
;; Turn region into Latex-picture | |
(defun latex-picture (start end) | |
(interactive "r") | |
(let ((hex-string (url-hexify-string | |
(filter-buffer-substring start end)))) | |
(delete-region start end) | |
(insert (concat "")))) |
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
;; Interactive functions to hexify and unhexify urls | |
(defun hexify-region (start end) | |
(interactive "r") | |
(let ((hex-string (url-hexify-string | |
(filter-buffer-substring start end)))) | |
(delete-region start end) | |
(insert hex-string))) | |
(defun unhexify-region (start end) | |
(interactive "r") |
NewerOlder