Fix frame initialization
This commit is contained in:
parent
0cf34a5a3c
commit
b2743d4188
@ -3856,21 +3856,23 @@ Set the character used to represent spaces to ·, and the character used for tab
|
|||||||
(defun imalison:restore-ansi-term-color-vector (&optional force)
|
(defun imalison:restore-ansi-term-color-vector (&optional force)
|
||||||
(when (or force (imalison:ansi-term-color-vector-broken?))
|
(when (or force (imalison:ansi-term-color-vector-broken?))
|
||||||
(setq ansi-term-color-vector imalison:ansi-term-color-vector)))
|
(setq ansi-term-color-vector imalison:ansi-term-color-vector)))
|
||||||
|
#+END_SRC
|
||||||
|
* Frame Initialization
|
||||||
|
#+BEGIN_SRC emacs-lisp
|
||||||
(defun imalison:appearance (&optional frame)
|
(defun imalison:appearance (&optional frame)
|
||||||
(interactive)
|
(interactive (list nil))
|
||||||
(if (display-graphic-p)
|
(if (display-graphic-p)
|
||||||
(progn
|
(progn
|
||||||
(condition-case _ignored
|
(condition-case _ignored
|
||||||
(set-face-attribute 'default nil :font "Source Code Pro")
|
(set-face-attribute 'default nil :font "Source Code Pro")
|
||||||
('error nil))
|
('error nil))
|
||||||
(set-face-attribute 'default nil :weight 'semi-bold)
|
(set-face-attribute 'default nil :weight 'semi-bold)
|
||||||
(set-face-attribute 'default nil :height 135)
|
(set-face-attribute 'default nil :height 135))
|
||||||
(progn
|
(progn
|
||||||
(load-theme 'source-code-pro t)
|
(load-theme 'source-code-pro t)
|
||||||
(message "not setting font")))
|
(message "not setting font")))
|
||||||
(load-theme imalison:dark-theme t)
|
(load-theme imalison:dark-theme t)
|
||||||
(imalison:remove-fringe-and-hl-line-mode)))
|
(imalison:remove-fringe-and-hl-line-mode))
|
||||||
|
|
||||||
;; 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))
|
||||||
|
Loading…
Reference in New Issue
Block a user