I put 'portable' in quotes because, as we all know, Emacs works with plain text and this plain text is innately portable. However, the format of this plain text is not.
My particular use-case is with Org documents. I have various customizations set up for Org, but I would like to use the defaults for one particular document as to use a 'neutral third-party' format. Normally I would use my defaults, but this document is being shared among peer developers – each likely to have their own customizations.
How can I get a list of variables that have been customized in the buffer and insert either (with a C-u
prefix) their default values or their local values?
emacs -Q
and (2) you can also take yourinit.el
on a flash drive. Of course, these do not answer your question, but someone looking for a similar thing might find these tips helpful.make-variable-buffer-local
and/ormake-local-variable
so that they create a list of buffer-local variables.