Skip to content

Instantly share code, notes, and snippets.

@shogochiai
Last active August 29, 2015 14:02
Show Gist options
  • Save shogochiai/ba6cdf984c901a5638f0 to your computer and use it in GitHub Desktop.
Save shogochiai/ba6cdf984c901a5638f0 to your computer and use it in GitHub Desktop.
emacsで新しいフレームを開いたときに色を良い感じにするやつ
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; # 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