4 ms·
Ask HN: What do you have configured in your .emacs?
I am relatively new to emacs and would like to see others example and maybe notes on anything 'interesting' they would like to share.
thank you in advance!
- howard941 7y agohttps://duckduckgo.com/?q=example+dot+emacs&ia=web https://duckduckgo.com/?q=example+dot+emacs&ia=web leads to dozens of great examples . Are you looking for anything in specific?
- fosco 7y agoLooking to see if HN users have anything unique
- stevekemp 7y agoI wrote mine in markdown, with comments and explanation: https://github.com/skx/dotfiles/blob/master/.emacs.d/init.md https://github.com/skx/dotfiles/blob/master/.emacs.d/init.md When emacs launches a simple `~.emacs.d/init.el` file parses that markdown, building up all the code-sections into a temporary buffer, then evaluates them. Pretty neat.
- nswanberg 7y agoHere is a post by Steve Yegge about his, written way back when glaciers covered most of North America: https://sites.google.com/site/steveyegge2/my-dot-emacs-file https://sites.google.com/site/steveyegge2/my-dot-emacs-file
- antonalekseev 7y agoHave a look at curated list of notable emacs dotfiles – https://github.com/caisah/emacs.dz https://github.com/caisah/emacs.dz.
- brlewis 7y agoTypeScript-oriented setup: https://gitlab.com/brlewis/brlewis-config/blob/master/emacs/startup.el https://gitlab.com/brlewis/brlewis-config/blob/master/emacs/...
- whelming_wave 7y agoPretty generic, though I've ended up configuring it to launch in ~0.5 seconds: https://github.com/lynlevenick/dotfiles/tree/master/emacs/.emacs.d https://github.com/lynlevenick/dotfiles/tree/master/emacs/.e...
- ludwigvan 7y agoSome modes I like: - use-package: Download & 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 Some shortcuts: s-e -> opens my emacs config so that I can make modifications faster. (bind-key "s-e" (lambda () (interactive) (find-file "~/.emacs.d/init.el"))) Zoom In/Out: (bind-key "M-=" 'text-scale-increase) (bind-key "M--" 'text-scale-decrease) Full Screen (bind-key [f11] 'toggle-frame-fullscreen) Also I try keep emacs config in a single file (~/.emacs.d/init.el), I tried using multiple files, but it is not worth the effort being that "tidy".
- brlewis 7y agoYou also like the package bind-key EDIT oh, included with use-package. I'm going to use it now along with your zoom bindings. Thanks.