TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: What do you have configured in your .emacs?

10 pointsby foscoabout 6 years ago
I am relatively new to emacs and would like to see others example and maybe notes on anything &#x27;interesting&#x27; they would like to share.<p>thank you in advance!

7 comments

ludwigvanabout 6 years ago
Some modes I like:<p><pre><code> - use-package: Download &amp; enable all packages automatically on new machines. - super-save-mode: Save files whenever focus changes - projectile: Switch bt. projects, open files in a project - helm: Better find file, M-x etc. - cider: For Clojure - ag: Integration with ag, bound to f3 - magit: better git - golden-ratio: So that current buffer is larger than the other buffer automatically - writeroom-mode: For focusing on text with large margins - turkish: Write Turkish with English keyboard and have diacritics applied automatically </code></pre> Some shortcuts:<p>s-e -&gt; opens my emacs config so that I can make modifications faster.<p><pre><code> (bind-key &quot;s-e&quot; (lambda () (interactive) (find-file &quot;~&#x2F;.emacs.d&#x2F;init.el&quot;))) </code></pre> Zoom In&#x2F;Out:<p><pre><code> (bind-key &quot;M-=&quot; &#x27;text-scale-increase) (bind-key &quot;M--&quot; &#x27;text-scale-decrease) </code></pre> Full Screen (bind-key [f11] &#x27;toggle-frame-fullscreen)<p>Also I try keep emacs config in a single file (~&#x2F;.emacs.d&#x2F;init.el), I tried using multiple files, but it is not worth the effort being that &quot;tidy&quot;.
评论 #19695120 未加载
stevekempabout 6 years ago
I wrote mine in markdown, with comments and explanation:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;skx&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.emacs.d&#x2F;init.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;skx&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.emacs.d&#x2F;init.md</a><p>When emacs launches a simple `~.emacs.d&#x2F;init.el` file parses that markdown, building up all the code-sections into a temporary buffer, then evaluates them. Pretty neat.
whelming_waveabout 6 years ago
Pretty generic, though I&#x27;ve ended up configuring it to launch in ~0.5 seconds: <a href="https:&#x2F;&#x2F;github.com&#x2F;lynlevenick&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;emacs&#x2F;.emacs.d" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;lynlevenick&#x2F;dotfiles&#x2F;tree&#x2F;master&#x2F;emacs&#x2F;.e...</a>
nswanbergabout 6 years ago
Here is a post by Steve Yegge about his, written way back when glaciers covered most of North America: <a href="https:&#x2F;&#x2F;sites.google.com&#x2F;site&#x2F;steveyegge2&#x2F;my-dot-emacs-file" rel="nofollow">https:&#x2F;&#x2F;sites.google.com&#x2F;site&#x2F;steveyegge2&#x2F;my-dot-emacs-file</a>
brlewisabout 6 years ago
TypeScript-oriented setup: <a href="https:&#x2F;&#x2F;gitlab.com&#x2F;brlewis&#x2F;brlewis-config&#x2F;blob&#x2F;master&#x2F;emacs&#x2F;startup.el" rel="nofollow">https:&#x2F;&#x2F;gitlab.com&#x2F;brlewis&#x2F;brlewis-config&#x2F;blob&#x2F;master&#x2F;emacs&#x2F;...</a>
howard941about 6 years ago
<a href="https:&#x2F;&#x2F;duckduckgo.com&#x2F;?q=example+dot+emacs&amp;ia=web" rel="nofollow">https:&#x2F;&#x2F;duckduckgo.com&#x2F;?q=example+dot+emacs&amp;ia=web</a> leads to dozens of great examples . Are you looking for anything in specific?
评论 #19690895 未加载
antonalekseevabout 6 years ago
Have a look at curated list of notable emacs dotfiles – <a href="https:&#x2F;&#x2F;github.com&#x2F;caisah&#x2F;emacs.dz" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;caisah&#x2F;emacs.dz</a>.