(provide 'thoom-os) (defconst ON-LINUX (eq system-type 'gnu/linux)) (defconst ON-MAC (eq system-type 'darwin)) (defconst ON-BSD (or ON-MAC (eq system-type 'berkeley-unix))) (defconst ON-WINDOWS (memq system-type '(cygwin windows-nt ms-dos))) ;; Emacs on macOS doesn't naturally find shell variables like PATH, ;; so to help it out we run a shell and load some variables from the env command. (use-package exec-path-from-shell :ensure t :if (and ON-MAC (memq window-system '(mac ns))) :config (dolist (var '("NIX_SSL_CERT_FILE" "NIX_PATH" "NIX_PROFILES")) (add-to-list 'exec-path-from-shell-variables var)) (exec-path-from-shell-initialize)) (elpaca-wait)