Emacs: Clear Register 1 ðŸ’
Clear Register 1
With append to register 1, sometimes you need to clear it first.
Here's command to clear register 1.
(defun xah-clear-register-1 () "Clear register 1. See also: `xah-copy-to-register-1' `xah-append-to-register-1' `xah-paste-from-register-1' `xah-clear-register-1' URL `http://xahlee.info/emacs/emacs/elisp_copy-paste_register_1.html' Version: 2015-12-08 2023-04-07" (interactive) (progn (copy-to-register ?1 (point-min) (point-min)) (message "Cleared register 1.")))
This command need to have a easy key to be useful. 〔see Emacs Keys: Define Key〕