I have a small question: how do I make this take effect in my init file when I run in server/client mode?
Seems like my client always insist on creating frames around emacs window, while when I run
emacs "standalone" (for ex emacs --debug-init) it starts undecorated. I have tried following in my
.emacs:
(add-to-list 'default-frame-alist '(undecorated . 0))
(setq default-frame-alist '((undecorated . 0)))
(setq initial-frame-alist '((undecorated . 0)))
But that does not give any effect at all.
I have following to switch off/on decorations interactively:
(defvar decor 0)
(defun toggle-frame-decor ()
(interactive)
(progn
(modify-frame-parameters (selected-frame) `((undecorated . ,'decor)))
(if (= decor 0)
(setq decor 1)
(setq decor 0))))
(global-set-key [f9] 'toggle-frame-decor)
If I place call to
(toggle-frame-decor)
in .emacs than it works for non-server mode, but not when I run emacsclient
(which I do normally always). I tried to force loading .emacs when severs starts
with -l ~/.emacs switch, but it didn't worked either.
I admit I am just very uneducated about emacs & elisp and would really appreciate if a nice
soul could help with my poor education.