Last active
August 29, 2015 14:02
-
-
Save shogochiai/ba6cdf984c901a5638f0 to your computer and use it in GitHub Desktop.
emacsで新しいフレームを開いたときに色を良い感じにするやつ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
;; # after-make-frame-functionsにhook足すのは非推奨らしいけど新しいフレーム開いたときに白背景になるので対策 | |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; | |
(defun my-set-display-for-windowed-frames (frame) | |
(select-frame frame) | |
(set-background-color "black") | |
(set-foreground-color "white")) | |
(add-hook 'after-make-frame-functions 'my-set-display-for-windowed-frames) | |
(my-set-display-for-windowed-frames (selected-frame)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment