Start migrating thoom-emacs away from org
This commit is contained in:
20
thoom-emacs/modules/thoom-os.el
Normal file
20
thoom-emacs/modules/thoom-os.el
Normal file
@@ -0,0 +1,20 @@
|
||||
(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)
|
||||
Reference in New Issue
Block a user