Compare commits
No commits in common. "8b26a8ac24d78fab70ac3bea1cbcfa69c3c2030d" and "2c90886299cd9df616bfaf6d488f05e25ac77ccb" have entirely different histories.
8b26a8ac24
...
2c90886299
@ -1,28 +0,0 @@
|
||||
;; -*- lexical-binding: t; -*-
|
||||
|
||||
(defvar my-light-theme 'jdormit-doom-solarized-light)
|
||||
(defvar my-dark-theme 'doom-solarized-dark)
|
||||
|
||||
(defun mac-appearance () (plist-get (mac-application-state) :appearance))
|
||||
|
||||
(defun dark-theme-enabled? ()
|
||||
(string-equal (mac-appearance)
|
||||
"NSAppearanceNameDarkAqua"))
|
||||
|
||||
(defun set-theme-from-system ()
|
||||
(if (dark-theme-enabled?)
|
||||
(consult-theme my-dark-theme)
|
||||
(consult-theme my-light-theme)))
|
||||
|
||||
(defvar theme-timer-status-cache (mac-appearance))
|
||||
(defun theme-timer-fn ()
|
||||
(let ((appearance (mac-appearance)))
|
||||
(when (not (string-equal appearance theme-timer-status-cache))
|
||||
(set-theme-from-system)
|
||||
(setq theme-timer-status-cache appearance))))
|
||||
(defun theme-timer-hook ()
|
||||
(run-at-time "2 sec" 2 #'theme-timer-fn))
|
||||
|
||||
(add-hook 'after-init-hook #'theme-timer-hook)
|
||||
|
||||
(provide 'init-mac)
|
@ -94,7 +94,6 @@
|
||||
(require 'init-js)
|
||||
(require 'init-rust)
|
||||
(require 'init-web)
|
||||
(require 'init-swift)
|
||||
(require 'init-xml)
|
||||
(require 'init-yaml)
|
||||
(require 'init-groovy)
|
||||
@ -114,8 +113,6 @@
|
||||
(require 'init-wallabag)
|
||||
(require 'init-lola)
|
||||
(require 'handwriting)
|
||||
(when (string-equal system-type "darwin")
|
||||
(require 'init-mac))
|
||||
|
||||
(load (expand-file-name (concat user-emacs-directory "local.el")) 'noerror 'nomessage)
|
||||
|
||||
|
@ -2,6 +2,7 @@ if [[ -f "/opt/homebrew/bin/brew" ]]; then
|
||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||
FPATH="$(brew --prefix)/share/zsh/site-functions:${FPATH}"
|
||||
fi
|
||||
export PATH="$PATH:/Users/jdormit/.local/bin"
|
||||
eval "$(pyenv init --path)"
|
||||
[[ -d "/opt/homebrew/opt/openjdk@17" ]] && export JAVA_HOME="/opt/homebrew/opt/openjdk@17"
|
||||
ulimit -n 524288
|
||||
|
Loading…
Reference in New Issue
Block a user