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 Libera. 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.
(add-to-list 'load-path "/path/to/better-defaults")to your init-file.
(require 'better-defaults)to your init-file.
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
smex. Sometimes when creating
a new file you'll want to temporarily disable ido; this can be done
C-f. You may also want to look at
The toolbar, menu bar, and scroll bar are all turned off.
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
names you get by default.
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:
hippie-expand instead of
C-x C-b is
ibuffer instead of
swapped with regex-aware incremental search functions.
show-paren-mode highlights the matching pair when the point is
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
zap-to-char) is replaced with the far more useful
require-final-newline is set to avoid problems with crontabs, etc.
load-prefer-newer prevents stale elisp bytecode from shadowing more up-to-date source files.
Ediff is set up to use the existing frame instead of creating a new one.
indent-tabs-mode defaults to nil.
backups-by-copying defaults to t. Preserves hardlinks you're editing.
savehist-mode defaults to t. Persists M-x commands history across shutdowns.
Copyright © 2013-2014 Phil Hagelberg and contributors
Licensed under the same license as Emacs (GPL v3 or later) unless otherwise specified.