Why does emacs create temporary symbolic links for modified files?

Update: Emacs 24.3 has been released with full support for this new setting! In the current trunk of emacs, you can simply customize the variable create-lockfiles: C-h v create-lockfiles Documentation: Non-nil means use lockfiles to avoid editing collisions. In your init file, you can set (setq create-lockfiles nil) Get it via bzr branch bzr://bzr.savannah.gnu.org/emacs/trunk emacs-trunk … Read more

Using Emacs to recursively find and replace in text files not already open

M-x find-name-dired: you will be prompted for a root directory and a filename pattern. Press t to “toggle mark” for all files found. Press Q for “Query-Replace in Files…”: you will be prompted for query/substitution regexps. Proceed as with query-replace-regexp: SPACE to replace and move to next match, n to skip a match, etc. Press … Read more

Why does Ctrl+. not work when I bind it to a command in Emacs?

In short, most terminal emulators are limited in the control characters they can produce (for the simple reason that the original terminals that they are emulating were likewise limited). So your terminal is very likely not producing anything other than . when you press C-. (and if that’s the case, that’s basically your answer, unless … Read more

Emacs 24 Package System Initialization Problems

It’s worth noting why Emacs defers the package initialization: See C-hig (emacs) Package Installation RET, and in particular: The reason automatic package loading occurs after loading the init file is that user options only receive their customized values after loading the init file, including user options which affect the packaging system. In some circumstances, you … Read more

Globally override key binding in Emacs

I use a minor mode for all my “override” key bindings: (defvar my-keys-minor-mode-map (let ((map (make-sparse-keymap))) (define-key map (kbd “C-i”) ‘some-function) map) “my-keys-minor-mode keymap.”) (define-minor-mode my-keys-minor-mode “A minor mode so that my key settings override annoying major modes.” :init-value t :lighter ” my-keys”) (my-keys-minor-mode 1) This has the added benefit of being able to turn … Read more