TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: Emacs on macOS Ventura on Apple Silicon

17 点作者 plg超过 2 年前
What is your go-to emacs for MacOS on apple silicon?<p>I&#x27;m aware of the wiki https:&#x2F;&#x2F;www.emacswiki.org&#x2F;emacs&#x2F;EmacsForMacOS<p>Just wondering what people choose. I grew up on emacs on Sun workstations. Want to get back to it. IDEs are driving me nuts.

8 条评论

foobarbaz33超过 2 年前
&gt; Want to get back to it. IDEs are driving me nuts.<p>This. I get a great experience without even using LSP which itself can be finicky.<p>1. ripgrep. Regex searches are the universal &quot;do-everything&quot; tool. If you really master them and integrate them into your workflow you will not want for much else. They can even supplant the need for auto completion to a certain degree. When you pop open the definition you searched for in a new window that&#x27;s analogous to a completion popup. Then just M-&#x2F; for dumb completion to assist with the manual typing.<p>2. ctags. Old school. But it works. They can work across weird file types with languages embedded in them, etc. citre-mode has some nice &quot;candy&quot; features built on ctags like a &quot;peek&quot; overlay popup.<p>3. snippets. Create a set of hand crafted snipppets for each language you use. Code flows out of your fingers at the speed of thought. Yasnippet does what I need and allows embedding of lisp code into the snippet for some really really advanced expansions. Although simple expansions are all that&#x27;s needed 99% of the time.<p>4. debugging. Take time to master a debugger like GDB. Or add debug(msg) statements through your code. Many languages will have a mechanism for the debug statements to be compiled out of a production build.<p>5. profit. Your laptop will never sound like an airplane take off the runway. The M1 may never be noisy but it will still reap the increased battery time.
onedognight超过 2 年前
I use Homebrew’s emacs<p><pre><code> brew install emacs </code></pre> or when I want a GUI, I use the Cask version from <a href="https:&#x2F;&#x2F;emacsforosx.com" rel="nofollow">https:&#x2F;&#x2F;emacsforosx.com</a><p><pre><code> brew install --cask emacs </code></pre> The <a href="https:&#x2F;&#x2F;emacsforosx.com" rel="nofollow">https:&#x2F;&#x2F;emacsforosx.com</a> maintainer goes to great lengths to compile many of the optional dependencies, like image formats, and to support older versions of MacOS.
noidesto超过 2 年前
<a href="https:&#x2F;&#x2F;github.com&#x2F;d12frosted&#x2F;homebrew-emacs-plus">https:&#x2F;&#x2F;github.com&#x2F;d12frosted&#x2F;homebrew-emacs-plus</a>
评论 #34015734 未加载
djaouen超过 2 年前
I use emacs-plus installed from homebrew. I also create an alias to the actual App in &#x2F;Applications so that it is picked up by Spotlight. :)
评论 #34017514 未加载
soraminazuki超过 2 年前
The Emacs package from Nix. It’s the only macOS build of Emacs I used that was fully featured, provided in binary form, distributed from a reputable source, and not broken. I initially used Homebrew Emacs, but it removed GUI support a while back. I then briefly tried the emacsformacosx build, the one Homebrew Cask points to, but I stopped using that too because it’s not compiled with the full set of dependencies and isn’t supported by DoomEmacs [1]. I then moved to emacs-plus, but that too had issues like the lack of binary packages and unreliable updates. I finally settled on Nix and it hasn’t given me problems since.<p>The current situation personally came off as a surprise considering the popularity of Emacs.<p>[1]: <a href="https:&#x2F;&#x2F;github.com&#x2F;doomemacs&#x2F;doomemacs&#x2F;blob&#x2F;085b5563fc73daf50d4661b45214123c5ed820f7&#x2F;docs&#x2F;getting_started.org#where-not-to-install-emacs-from">https:&#x2F;&#x2F;github.com&#x2F;doomemacs&#x2F;doomemacs&#x2F;blob&#x2F;085b5563fc73daf5...</a>
mark_l_watson超过 2 年前
I recently just built it from source to get ahead of time compiling for ELisp. A little bit of effort, but after 1 long build, now it starts quickly and runs fast.
plg超过 2 年前
update: tried this build script and seems good<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jimeh&#x2F;build-emacs-for-macos">https:&#x2F;&#x2F;github.com&#x2F;jimeh&#x2F;build-emacs-for-macos</a>
johnklos超过 2 年前
NetBSD&#x27;s pkgsrc will let you compile any of a number of different emacs versions easily.
评论 #34016805 未加载