mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
On my 2016 MacBook Pro correction times are around 200ms with the daemon, compared to around 3-4 seconds without. There might be some issues if bundler depends heavily on gems included in the project, but we'll see how that goes.
35 lines
1.0 KiB
EmacsLisp
35 lines
1.0 KiB
EmacsLisp
;;; siren-core-env.el --- jimeh's Emacs Siren: Environment variable setup.
|
|
|
|
;;; Commentary:
|
|
|
|
;; Setup for various environment variables to ensure external programs are
|
|
;; available.
|
|
|
|
;;; Code:
|
|
|
|
(use-package exec-path-from-shell
|
|
:custom
|
|
(exec-path-from-shell-variables '("PATH"
|
|
"MANPATH"
|
|
"TMPDIR"
|
|
"GOPATH"
|
|
"KUBECONFIG"))
|
|
(exec-path-from-shell-arguments '("-l"))
|
|
(exec-path-from-shell-check-startup-files nil)
|
|
(exec-path-from-shell-debug nil)
|
|
|
|
:config
|
|
(when (memq window-system '(mac ns x))
|
|
(exec-path-from-shell-initialize)))
|
|
|
|
;; Set temporary-file-directory to match TMPDIR environment variable
|
|
(let ((tmpdir (getenv "TMPDIR")))
|
|
(when (and tmpdir (not (string-blank-p tmpdir)))
|
|
(setq temporary-file-directory tmpdir)))
|
|
|
|
;; Add bin directory within emacs configuration dir to `exec-path'.
|
|
(add-to-list 'exec-path (expand-file-name "bin" siren-dir))
|
|
|
|
(provide 'siren-core-env)
|
|
;;; siren-core-env.el ends here
|