Skip to content

Instantly share code, notes, and snippets.

@nxtr
Created July 25, 2023 13:48
Show Gist options
  • Save nxtr/d80ab7b90087fa01b72a20f9fcc0c935 to your computer and use it in GitHub Desktop.
Save nxtr/d80ab7b90087fa01b72a20f9fcc0c935 to your computer and use it in GitHub Desktop.
Update saved value of custom variable
(defmacro custom-set-variable (variable)
"Update saved value of custom `VARIABLE'"
`(custom-set-variables
'(,variable `,,variable 'now nil ,(format "Customized in %s" load-file-name))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment