Use the null device to ignore "custom" code instead of temp file
Since it seems that you may not be entirely satisfied with your workaround for disabling Emacs from saving "custom" code, I thought that I'd point out that you can use null-device
(or /dev/null
) for custom-file
rather than making an ignored temporary file; this seems slightly less hacky and is what I do personally.
Edited by Justin Schell