Update after-make-frame-functions hook.
This commit is contained in:
parent
21ad25b3e6
commit
bec76eeffd
|
@ -53,9 +53,9 @@ This allows you to have a mix of light and dark frames. I tend to use light fram
|
||||||
```common-lisp
|
```common-lisp
|
||||||
(add-hook 'after-make-frame-functions
|
(add-hook 'after-make-frame-functions
|
||||||
(lambda (frame)
|
(lambda (frame)
|
||||||
(set-frame-parameter frame
|
(let ((mode (if (display-graphic-p frame) 'light 'dark)))
|
||||||
'background-mode
|
(set-frame-parameter frame 'background-mode mode)
|
||||||
(if (display-graphic-p frame) 'light 'dark))
|
(set-terminal-parameter frame 'background-mode mode))
|
||||||
(enable-theme 'solarized)))
|
(enable-theme 'solarized)))
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue