Nifty Emacs package of the day: list-environment https://github.com/dgtized/list-environment.el . It gives a pretty view of environment variables with editing.