summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorAlan Pearce2019-06-30 12:38:26 +0200
committerAlan Pearce2019-06-30 12:43:09 +0200
commit09a0a4528c94f8b8164671a71d469578d06be283 (patch)
treed773d22e85547efac6fc08bbf3d224d12ec1160c
parente4b4769879262237ce7827e59cd3311e3e73d01b (diff)
downloaddotfiles-09a0a4528c94f8b8164671a71d469578d06be283.tar.lz
dotfiles-09a0a4528c94f8b8164671a71d469578d06be283.tar.zst
dotfiles-09a0a4528c94f8b8164671a71d469578d06be283.zip
Emacs: configure "transparent" titlebars on macOS
-rw-r--r--emacs/.emacs.d/main.el8
1 files changed, 7 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index f6f453d..e09d68a 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -35,7 +35,9 @@
 
 (when (or (daemonp)
            window-system)
-  (load-theme 'eink t))
+  (load-theme 'eink t)
+  (setq frame-background-mode 'light)
+  (mapc 'frame-set-background-mode (frame-list)))
 
 (global-hl-line-mode +1)
 
@@ -52,6 +54,10 @@
 
 (setq frame-title-format (list "Emacs"))
 
+(use-package ns-auto-titlebar
+  :if (eq system-type 'darwin)
+  :custom ((ns-auto-titlebar-mode t)))
+
 ;;; Dates & Times
 
 (custom-set-variables