Open file via SSH and Sudo with Emacs

As of Emacs 24.3, an analog of the old multi: syntax has been layered on top of the modern tramp-default-proxies-alist approach, meaning that you can once again perform multi-hops without any prior configuration. For details, see: C-hig (tramp)Ad-hoc multi-hops RET With the new syntax, each ‘hop’ is separated by |. The example in the manual … Read more

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

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