Hopefully fix frame font at startup issue.
This commit is contained in:
parent
ad65cf52dc
commit
233030d14e
@ -1994,13 +1994,15 @@ window is active in the perspective."
|
|||||||
(defadvice load-theme (after name activate)
|
(defadvice load-theme (after name activate)
|
||||||
(remove-fringe-and-hl-line-mode)))
|
(remove-fringe-and-hl-line-mode)))
|
||||||
|
|
||||||
;; This is needed because you can't set the font at daemon start-up.
|
;; This is needed because you can't set the font or theme at daemon start-up.
|
||||||
(add-hook 'after-make-frame-functions 'set-my-font-for-frame)
|
(add-hook 'after-make-frame-functions
|
||||||
(add-hook 'after-make-frame-functions (lambda (frame) (set-theme)))
|
(lambda (frame)
|
||||||
;; This is needed to ensure that linum-format is dynamic.
|
(set-theme)
|
||||||
;; Without this we get massive margins.
|
(remove-fringe-and-hl-line-mode)
|
||||||
(add-hook 'after-make-frame-functions 'remove-fringe-and-hl-line-mode)
|
(set-my-font-for-frame)))
|
||||||
|
|
||||||
|
(add-to-list 'default-frame-alist
|
||||||
|
`(font . ,(random-choice imalison:fonts)))
|
||||||
|
|
||||||
(when (file-exists-p custom-after-file) (load custom-after-file))
|
(when (file-exists-p custom-after-file) (load custom-after-file))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user