;; Adds lib folders to env vars ;; Solves Magit compilation problem on arch guix emacs ;; (defun my-append-env-var (var-name value) ;; "Append VALUE to the beginning of current value of env variable VAR-NAME." ;; (setenv var-name (if (getenv var-name) ;; (format "%s:%s" value (getenv var-name)) ;; value))) ;; (let ((gccjitpath "/usr/lib/gcc/x86_64-pc-linux-gnu:/usr/lib:/home/peronio/.local/bin")) ;; (mapc (lambda (var-name) (my-append-env-var var-name gccjitpath)) ;; '("LIBRARY_PATH" "LD_LIBRARY_PATH" "PATH")))