Skip to content

Commit

Permalink
refactor(daemon): make use of +add-hook!
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jul 22, 2023
1 parent b2cec8b commit 918256a
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions modules/me-daemon.el
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,7 @@
(server-start nil t))))

;; Reload theme when creating a frame on the daemon
(add-hook
'server-after-make-frame-hook
(defun +daemon--reload-theme-h ()
(load-theme minemacs-theme t)))
(+add-hook! server-after-make-frame (load-theme minemacs-theme :no-confirm))


(provide 'me-daemon)
Expand Down

0 comments on commit 918256a

Please sign in to comment.