Bad-ptr / persp-mode.el

named perspectives(set of buffers/window configs) for emacs
400 stars 44 forks source link

"emacscleint -c" (or call to make-frame) set perspectives of all frame to "#none" #97

Closed mgcyung closed 5 years ago

mgcyung commented 5 years ago

A new frame created by "emacsclient -c" will set perspectives of all frames include pre-exist frames to "#none".

mgcyung commented 5 years ago

It is caused by that "emacsclient -c" will load custom-set-variables due to set "after-make-frame-functions" in my init file as follows

(if (daemonp) (add-hook 'after-make-frame-functions (lambda (frame) (select-frame frame) (load-theme 'mgc-dracula t))) (load-theme 'mgc-dracula t))

It is used to load the theme after a frame is created when running "emacs --daemon". However there is an entry in custom-set-variables to load persp-mode and persp-mode will reset the current perspective list.

It is a setting mistake in my init file. Remove the entry setting persp-mode in custom.el can solve this problem.

Bad-ptr commented 5 years ago

interesting

Bad-ptr commented 5 years ago

Must be fixed 689f63e7370cd9424d84b9f7b2eb3d1955443313