[Emacs] Fix initial setup of frame
This commit is contained in:
parent
6e87b9d439
commit
f0e81c65f1
@ -4720,13 +4720,17 @@ load-theme hook (See the heading below).
|
|||||||
(load-theme imalison:dark-theme t)
|
(load-theme imalison:dark-theme t)
|
||||||
(spaceline-compile)
|
(spaceline-compile)
|
||||||
(imalison:remove-fringe-and-hl-line-mode))
|
(imalison:remove-fringe-and-hl-line-mode))
|
||||||
|
#+END_SRC
|
||||||
|
*** Hooks to set everything up
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
(defun imalison:initial-setup-hook (&rest args)
|
||||||
|
(apply 'imalison:appearance args)
|
||||||
|
(remove-hook 'after-make-frame-functions 'imalison:initial-setup-hook))
|
||||||
|
|
||||||
;; This is needed because you can't set the font or theme at daemon start-up.
|
;; This is needed because you can't set the font or theme at daemon start-up.
|
||||||
;; (when (display-graphic-p) (imalison:appearance))
|
;; (when (display-graphic-p) (imalison:appearance))
|
||||||
(add-hook 'after-init-hook 'imalison:appearance)
|
(add-hook 'after-init-hook 'imalison:appearance)
|
||||||
(add-hook 'after-make-frame-functions 'imalison:appearance)
|
(add-hook 'after-make-frame-functions 'imalison:initial-setup-hook)
|
||||||
;; TODO/XXX: why do we immediately remove this hook?
|
|
||||||
(remove-hook 'after-make-frame-functions 'imalison:appearance)
|
|
||||||
#+END_SRC
|
#+END_SRC
|
||||||
* Post Init Custom
|
* Post Init Custom
|
||||||
#+BEGIN_SRC emacs-lisp
|
#+BEGIN_SRC emacs-lisp
|
||||||
|
Loading…
Reference in New Issue
Block a user