.emacs.d/lisp/init-exec-path.el
2024-09-06 11:42:11 +02:00

18 lines
612 B
EmacsLisp

;;; init-exec-path.el --- Set up exec-path to help Emacs find programs -*- lexical-binding: t -*-
;;; Commentary:
;;; Code:
(require-package 'exec-path-from-shell)
(with-eval-after-load 'exec-path-from-shell
(dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG" "LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH"))
(add-to-list 'exec-path-from-shell-variables var)))
(when (or (memq window-system '(mac ns x pgtk))
(unless (memq system-type '(ms-dos windows-nt))
(daemonp)))
(exec-path-from-shell-initialize))
(provide 'init-exec-path)
;;; init-exec-path.el ends here