improve erc-sasl
[Emacs.git] / lisp / init-exec-path.el
blob494b4c486a9eed72ab301967285f6e0f556554ea
1 ;;; init-exec-path.el --- Set up exec-path to help Emacs find programs -*- lexical-binding: t -*-
2 ;;; Commentary:
3 ;;; Code:
5 (require-package 'exec-path-from-shell)
7 (with-eval-after-load 'exec-path-from-shell
8 (dolist (var '("SSH_AUTH_SOCK" "SSH_AGENT_PID" "GPG_AGENT_INFO" "LANG" "LC_CTYPE" "NIX_SSL_CERT_FILE" "NIX_PATH"))
9 (add-to-list 'exec-path-from-shell-variables var)))
12 (when (or (memq window-system '(mac ns x pgtk))
13 (unless (memq system-type '(ms-dos windows-nt))
14 (daemonp)))
15 (exec-path-from-shell-initialize))
17 (provide 'init-exec-path)
18 ;;; init-exec-path.el ends here