Re:Clojure and Doom Emacs on a brand new M1 computer
by CraigJPerry on Tuesday April 19, 2022 @03:06PM
(#31087453)
>> arch -arm64 brew install
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.
Re:Clojure and Doom Emacs on a brand new M1 computer
by chisquared on Wednesday April 20, 2022 @11:31PM
(#31105786)
Prefixing `arch -arm64` is pretty solid advice still, I think. It's really easy to inadvertently run your terminal in Rosetta, and not notice that you're running a non-native version of `brew`.
Re:Clojure and Doom Emacs on a brand new M1 computer
by casion on Tuesday April 19, 2022 @01:16PM
(#31085968)
I use openjdk on my M1 with Clojure without a hiccup or anything beyond the standard installation process. No problem with clj-kondo or LSP either. I use Emacs with a fairly complex config.
I'm curious why the author went through all this trouble.
Re:Clojure and Doom Emacs on a brand new M1 computer
by arthurbrrs on Wednesday April 20, 2022 @10:31AM
(#31097512)
Post author here. I couldn’t get Malli’s clj-kondo integration to work, because Flycheck wouldn’t pick up kondo. Michiel later said that if you use clj-kondo under rosetta it should work though -since I haven’t touched rosetta I didn’t know this.
Re:Clojure and Doom Emacs on a brand new M1 computer
by larusso on Tuesday April 19, 2022 @02:17PM
(#31086773)
Hmm I haven’t set JAVA_HOME in years. At least not on macOS or Linux. I use jenv if I’m really in need of multiple Java virtual machines and switch it via direnv.
Re:Clojure and Doom Emacs on a brand new M1 computer
by Maursault on Tuesday April 19, 2022 @06:18PM
(#31090070)
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"
Re:Clojure and Doom Emacs on a brand new M1 computer
by emptysongglass on Tuesday April 19, 2022 @02:06PM
(#31086627)
The Spacemacs creator took a long break at some point and never really handed over the reins at least while I was using it. I don't know if that has since changed (I assume it must have) but that was a big reason why I switched, together with its slow time to start-up.
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.
Re:Clojure and Doom Emacs on a brand new M1 computer
by yewenjie on Tuesday April 19, 2022 @03:45PM
(#31088013)
Same for me. I wonder what has changed in Spacemacs in the last two or three years? Is there anything that Spacemacs offers that is non-trivial to do in Doom?
Re:Clojure and Doom Emacs on a brand new M1 computer
by joeman1000 on Tuesday April 19, 2022 @06:07PM
(#31089940)
Try it out, it’s so much faster and more actively developed compared to spacemacs. Chances are you’ll love it. The community is very active on discord and discourse. There are roughly 2000 users on each platform. Doom and emacs in general has seen an uptick in the last few years (anecdotally). Doom is such a wonderful project, with an excellent maintainer (hlissner).
Re:Clojure and Doom Emacs on a brand new M1 computer
by BarbaPeru on Tuesday April 19, 2022 @01:45PM
(#31086359)
Similar project to Spacemacs, doom-emacs seems more alive recently, some people say it is faster than Spacemacs. I like both, but I never switched to them from vim.
Re:Clojure and Doom Emacs on a brand new M1 computer
by mbil on Tuesday April 19, 2022 @04:07PM
(#31088300)
As others have said, Doom seems faster than Spacemacs, especially at startup. Doom has lighter weight config, but it's also less opinionated. I've been using Doom for a while now, and the only thing I missed was Spacemacs' keybindings. Those can be recreated in Doom though[0].
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?
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.
They’re both quite good at what they do, and they do similar things.
[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.