Giter Site home page Giter Site logo

better-defaults's Introduction

Better Defaults for Emacs

There are a number of unfortunate facts about the way Emacs works out of the box. While all users will eventually need to learn to write Emacs Lisp in order to customize it to their particular tastes, this package attempts to address the most obvious of deficiencies in uncontroversial ways that nearly everyone can agree upon.

Why not just fix Emacs? Suggesting a change to the defaults of Emacs usually results in a long thread in which people who have been using Emacs for decades loudly complain about how the change would be disruptive to their habits and how it's just one line for people to get the improved behaviour in their own config files. While I would love to see each of these changes become part of Emacs, I don't hold a lot of hope for it.

Obviously there are many further tweaks you could do to improve Emacs, (like those the Starter Kit and similar packages) but this package focuses a few changes that have near-universal appeal, lovingly hand-selected by inhabitants of the #emacs channel on Freenode. The approach of the Starter Kit and co. is problematic in that when users add in a big pile of unrelated functionality it's difficult to debug when it goes wrong, and it's hard to tell where a specific piece of functionality came from if it turns out to be undesired.

New behaviour

  • ido-mode allows many operations (like buffer switching and file navigation) to be enhanced with instant feedback among the completion choices. If you like ido, you should check out ido-hacks and smex. Sometimes when creating a new file you'll want to temporarily disable ido; this can be done with C-f. You may also want to look at ido-use-virtual-buffers.

  • The toolbar, menu bar, and scroll bar are all turned off.

  • The uniquify library makes it so that when you visit two files with the same name in different directories, the buffer names have the directory name appended to them instead of the silly hello<2> names you get by default.

  • The saveplace library saves the location of the point when you kill a buffer and returns to it next time you visit the associated file.

  • A few key bindings are replaced with more powerful equivalents: M-/ is hippie-expand instead of dabbrev-expand, C-x C-b is ibuffer instead of list-buffers, and C-s and C-r are swapped with regex-aware incremental search functions.

  • show-paren-mode highlights the matching pair when the point is over parentheses.

  • Under X, killing and yanking uses the X clipboard rather than just the primary selection.

  • Apropos commands perform more extensive searches than default.

  • Mouse yanking inserts at the point instead of the location of the click.

  • Backups are stored inside user-emacs-directory. (Usually ~/.emacs.d)

Copyright

Copyright © 2013 Phil Hagelberg and contributors

Licensed under the same license as Emacs (GPL v3 or later) unless otherwise specified.

better-defaults's People

Contributors

technomancy avatar

Watchers

Raphaël Doré avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.