Clojure and Doom Emacs on a brand new M1 computer
arthurbrrs.me
arthurbrrs.me
Ahh i think these are old instructions, maybe copied from an old blog post or something. You don’t need the arch command anymore (provided you haven’t done something unexpected like run your terminal emulator of choice under rosetta - universal binaries make it easy to make that mistake!).
This form of instruction was popular the first few weeks after m1 launched but homebrew got native support fairly quickly. Initially i had an arm install, /opt/homebrew and an Intel “ibrew” alias for /usr/local/homebrew but even the stubborn binaries now have m1 builds. I think the last hold out for me was the D compiler - not that i write any D, but i have a tool i find handy written in D.
I'm curious why the author went through all this trouble.
Does it not run on the M1?
while :; do sleep 0 `#get dev acct,dL&install Xcode`;done;/
tar -xf $(curl -Ok https://distfiles.macports.org/MacPorts/MacPorts-2.7.2.tar.bz2); /
cd MacPorts-2.7.2/;./configure;make; /
echo -e "\n\n\tBye-bye...\n\t\tSo I sez to him... The real way\n\t\tthat it should be done is to...\n\n\n";sleep 3; sudo make install; /
sudo mv /opt/local/etc/macports/macports.conf /opt/local/etc/macports/macports.conf.bak;/
`# remove comments, hashes and ticks# sudo vi /opt/local/etc/macports/macports.conf #if necessary, edit`;cd; /
echo "export PATH=$PATH:/opt/local/bin:/opt/local/sbin:/opt/local/share/man:/usr/X11/bin" >> ~/.bash_profile;source ~/.bash_profile; /
sudo port -vsN selfupdate; sudo port -vsN upgrade oudated; /
sudo port -vsN install emacs clojure openjdk17-zulu; /
sudo port -vsN selfupdate; sudo port -vsN upgrade oudated; /
port info crispy-doom; sleep 5; /
git clone https://github.com/hlissner/doom-emacs ~/.emacs.d ~/.emacs.d/bin/doom install; /
doom upgrade; /
echo -e "\n\n\n\n\n\t\tmake install\n\t\tnot war\n\n\n\n\tand may the source be with you... always\n\n\n"They’re both quite good at what they do, and they do similar things.
Doom Emacs launches incredibly fast and has a ton of modules you can flip on and off to get a great Python development environment or what have you.
[0] https://github.com/chenyanming/spacemacs_module_for_doom
It's a bit more minimalistic, while providing a rock solid base on which to build.