help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PWD is not seen by my emacs installation


From: Patrick Mahan
Subject: Re: PWD is not seen by my emacs installation
Date: Mon, 21 Aug 2023 21:24:12 -0700

Thanks, I'll check it out.

On Mon, Aug 21, 2023 at 6:14 PM David Masterson <dsmasterson@gmail.com>
wrote:

> Patrick Mahan <plmahan@gmail.com> writes:
>
> > Yes, that is what occurs, but my issue is the need to give the full path
> > (or even a relative path off of '~').  I just want to edit the file in
> the
> > local directory.  I do not want to have to say "open -a Emacs.app
> > $PWD/file.txt" just to open a local file.
> >
> > I also tried using the --env option to the open command but it does not
> > seem to work.
> >
> > Invoking it directly works correctly.
>
> This sounds like the same problem of starting Emacs from an icon in many
> window managers.  The standard icons often don't load your "profile",
> but rather uses a default "slimmed down" profile.  Try this:
>
> 1. Start Emacs from the icon
> 2. Check your environment by either of these ways:
> 2a, 'M-x shell' and then 'env'
> 2b. 'C-h v process-environment'
> 3. Compare that environment with your "directly" environment
> 4. If $HOME is correct in #2 & #3, you can fix other key environment
> variables using early-init.el (see 'Init File' in the Emacs infodocs).
> 5. Use 'setenv' in early-init.el to adjust your environment as needed.
>
> --
> David Masterson
>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]