I recently switched to emacsclient for most text editing. I am trying to transfer some of my settings to a new (and slightly different) environment.
In particular, in my .emacs file, I have a function that sets the window size and prepares some themes. However, the code in the .emacs file does not execute each time emacsclient is called, so the settings do not apply to these windows. Based on the question here , I added a hook to 'server-visit-hook, which called a function that performed my settings. However, the settings are not applied when restarting the server and calling emacsclient.
How to style and position new emacsclient windows? The relevant parts of my .emacs are listed below:
(defun gui-mode()
(set-face-attribute 'default nil :font "Monospace-8")
(require 'theme-wombat)
(set-frame-size-according-to-resolution))
(add-hook 'server-visit-hook 'gui-mode)
(when window-system
(gui-mode))