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: Emacs Users, what's in your .emacs file? (2017)

7 pointsby pebblexeabout 8 years ago
As a continuation of the last time this was posted: https://news.ycombinator.com/item?id=1654164

5 comments

itamarstabout 8 years ago
I spent a lot of time maintaining a .emacs. Then I found Spacemacs and now it&#x27;s <i>much</i> shorter - the majority is just spacemacs boilerplate:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;itamarst&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.spacemacs#L310-L358" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;itamarst&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.spacemacs#...</a> and <a href="https:&#x2F;&#x2F;github.com&#x2F;itamarst&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.spacemacs#L32-L72" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;itamarst&#x2F;dotfiles&#x2F;blob&#x2F;master&#x2F;.spacemacs#...</a> are most my customizations.
pebblexeabout 8 years ago
For me it&#x27;s a simple undotree toggle:<p><pre><code> ;; undotree (defun undo-tree-visualizer-toggle () (interactive) (if (get-buffer undo-tree-visualizer-buffer-name) (undo-tree-visualizer-quit) (undo-tree-visualize))) ;; Represent undo-history as an actual tree (visualize with C-x u) (setq undo-tree-mode-lighter &quot;&quot;) (require &#x27;undo-tree) (global-undo-tree-mode) (global-set-key [f8] &#x27;undo-tree-visualizer-toggle)</code></pre>
sk8ingdomabout 8 years ago
I use mine [1] mostly for Org-mode but there are a few other goodies included. Eventually I&#x27;d like to wrap it with use-package for portability.<p>To the curious: don&#x27;t hesitate to ask.<p>To the critical: don&#x27;t hesitate to point out improvements!<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;sk8ingdom&#x2F;.emacs.d" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;sk8ingdom&#x2F;.emacs.d</a>
ahokaabout 8 years ago
<a href="https:&#x2F;&#x2F;gist.github.com&#x2F;ahoka&#x2F;aa2a83196ceab44ab400" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;ahoka&#x2F;aa2a83196ceab44ab400</a><p>It&#x27;s much better since I have learned about use-package.
leed25dabout 8 years ago
My .emacs file has been accreting since around 1988. It is a hot mess, I would be embarrassed for anyone to see it.
评论 #13863848 未加载