I'm just trying my hands on emacs lisp. So far I've had some luck, but I'm stuck trying to load my frames configuration into a list.
Here's what I'm trying to do... I am saving frames configuration (all currently open frames) like so
(defun save-all-frames () (interactive) (let ((config (current-frame-configuration))) (with-temp-buffer (insert (format "%s" config)) (if (file-exists-p framegeometry-file) (when (file-writable-p framegeometry-file) (write-file framegeometry-file))) )) )
framegeometry-file points to
Now this works fine...but I do not know how to read it back
into a list so that I can traverse through it and create frames
with the configuration. I'm thinking of using
restore the configuration read from the file.
Any help or pointers in the right direction will be really appreciated.