I am new to Elisp. I would like to do the following in my init file:
; Retrieve the value of LD_LIBRARY_PATH ; Append '/path/to/some/lib/:'to it ; Save the new value of LD_LIBRARY_PATH
So far I know that I can use:
to retrieve the value, and:
(setenv "LD_LIBRARY_PATH" "foo")
to set a new value, but my knowledge of Elisp is extremely rudimentary so I don't know to proceed from this point.
This question is inspired by the fact that it is not be possible to source a shell script to manipulate this environment from within Emacs, so I would need to do this using Elisp.