Hello, Peter Brett <pe...@peter-b.co.uk> writes:
> What I'd like to do is something like the following: > > * Load system config > * Load user config > * Save environment ==> [0] > > * User opens /path/to/a/file > * Load config from /path/to/a/editor.conf > * Edit, edit, hack, hack. > > * User opens /path/to/another/file > * Save environment ==> [1] > * Restore environment <== [0] > * Load config from /path/to/another/editor.conf > * Edit, edit, hack, hack. Before answering, I'd like to make sure I understand what you want to achieve. What do you mean by "environment"? All the global variables associated with a given file in the editor? What do you mean by "save"? Serialize to a file the "environment" associated with a file (or the difference compared to the initial environment)? Thanks, Ludo'.