summaryrefslogtreecommitdiff
path: root/early-init.el
diff options
context:
space:
mode:
Diffstat (limited to 'early-init.el')
-rwxr-xr-xearly-init.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/early-init.el b/early-init.el
new file mode 100755
index 0000000..d2b1dee
--- /dev/null
+++ b/early-init.el
@@ -0,0 +1,11 @@
+;; 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")))