I have the following function in my emacs config:
(defun *make-frame-pretty (frame)
"`*make-frame-pretty' will apply additional theme settings to make it prettier"
;; Add a fringe.
;; It's quite nice and makes things easier to read
(set-fringe-mode
(/ (- (frame-pixel-width)
(* 75 (frame-char-width)))
16))
(set-default-font "Fira Code"))
(add-hook 'after-make-frame-functions '*make-frames-pretty t)
Outside the function, when starting emacs directly, this code applies the font and fringe size, however when starting an emacs daemon and then starting a client frame, it doesn't apply. When setup as a function as a hook like this, it doesn't apply at all.
How can I get this code to run when a new frame is created?