Update after-make-frame-functions hook.

This commit is contained in:
Greg Pfeil 2015-04-25 19:44:56 -06:00
parent 21ad25b3e6
commit bec76eeffd
1 changed files with 3 additions and 3 deletions

View File

@ -53,9 +53,9 @@ This allows you to have a mix of light and dark frames. I tend to use light fram
```common-lisp
(add-hook 'after-make-frame-functions
(lambda (frame)
(set-frame-parameter frame
'background-mode
(if (display-graphic-p frame) 'light 'dark))
(let ((mode (if (display-graphic-p frame) 'light 'dark)))
(set-frame-parameter frame 'background-mode mode)
(set-terminal-parameter frame 'background-mode mode))
(enable-theme 'solarized)))
```