Symlinking Emacs.app to the $PATH

Tim Visher tim.visher at gmail.com
Fri Nov 14 04:00:23 PST 2008


That works!  It's funny but I'm kinda new to the whole `alias` thing,
so I hadn't even thought of doing that.  I really need to remember
that's there.

I guess we'll assume that the issue was somewhere in the fact that I
was symlinking it.

Thanks again, Ryan!

On Fri, Nov 14, 2008 at 1:29 AM, Ryan Schmidt <ryandesign at macports.org> wrote:
> On Nov 13, 2008, at 18:22, Tim Visher wrote:
>
>> I'm attempting to make Emacs.app my default installation.  I read
>> somewhere that one way to do this is to symlink
>> /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs onto your path.
>>
>> What I've done so far is to `ln -s
>> /Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs ~/.bin/emacs`
>> where `~/.bin` is on my $PATH.  Unfortunately, when I run this, I get
>> the following error:
>>
>>    Warning: arch-dependent data dir
>>
>> (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/nextstep/build/Emacs.app/Contents/MacOS/libexec/emacs/23.0.60/i386-apple-darwin9.5.0/)
>> does not exist.
>>    Warning: arch-independent data dir
>>
>> (/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_aqua_emacs-app/work/emacs-23.0.0_NS-9.0rc3/nextstep/build/Emacs.app/Contents/Resources/share/emacs/23.0.60/etc/)
>> does not exist.
>
> Odd. Those directories have of course been cleaned up after the build; Emacs
> shouldn't be referring to them.
>
>>    Cannot open load file: encoded-kb
>>
>> What's even stranger is that if I actually run
>> `/Applications/MacPorts/Emacs.app/Contents/MacOS/Emacs` directly, it
>> works exactly as I want it to.
>>
>> Anyway, ideas?  Thanks in advance!
>
> If all you're trying to have happen is for Emacs.app to open when you type
> "emacs" in the Terminal, then you can create an alias in your .bashrc:
>
> alias emacs='open -a "/Applications/MacPorts/Emacs.app"'
>
>
>



-- 

In Christ,

Timmy V.

http://burningones.com/
http://five.sentenc.es/ - Spend less time on e-mail


More information about the macports-users mailing list