;;; -*- lexical-binding: t -*- ;; ;; this file: ;; https://dataswamp.org/~incal/emacs-init/hex.el ;; ;; original code: ;; https://lists.gnu.org/archive/html/emacs-devel/2023-12/msg00947.html (defun decode-hex (str) (replace-regexp-in-string ".." (lambda (hex) (string (string-to-number hex 16))) str) ) ;; (decode-hex "616e6f6e796d6f75732d6c616d626461") (provide 'hex)