 (use-package exec-path-from-shell
   :ensure t
   :config
+  (when (daemonp)
+    (exec-path-from-shell-initialize))
   (setq exec-path-from-shell-check-startup-files nil)
   (when (memq window-system '(mac ns x))
     (exec-path-from-shell-initialize)

  (x-stretch-cursor t)
  (column-number-mode t)
  (compilation-scroll-output 'first-error)
  (auto-save-file-name-transforms '((".*" "~/.emacs.d/backup/" t)))
  (auto-revert-verbose nil)
  (global-auto-revert-mode t)
  (auto-save-file-name-transforms '((".*" "~/.emacs.d/backup/" t)))

  :defer t
  :ensure t
  :init
  (load-theme 'spacemacs-dark t)
  (fix-mac-os))

