aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/lisp/init-utils.el
blob: d244084ba2802c469661bcd18f3576458721bc66 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
(defun gx/diminish (mode &optional to-what)
  (when (gx/maybe-require-package 'diminish)
    (require 'diminish)
    (diminish mode to-what)))

(setq exec-path-from-shell-arguments '("-l"))
(when (gx/maybe-require-package 'exec-path-from-shell)
  (when (memq window-system '(mac ns))
    (require 'exec-path-from-shell)
    (exec-path-from-shell-initialize)))

(provide 'init-utils)