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

Where can I find my .emacs file for Emacs running on Windows?

Copy and pasted from the Emacs FAQ, http://www.gnu.org/software/emacs/windows/: Where do I put my init file? On Windows, the .emacs file may be called _emacs for backward compatibility with DOS and FAT filesystems where filenames could not start with a dot. Some users prefer to continue using such a name, because Windows Explorer cannot create a file … Read more

How do I make git use the editor of my choice for editing commit messages?

Setting the default editor for Git Pick one: Set core.editor in your Git config: git config –global core.editor “vim” Set the GIT_EDITOR environment variable: export GIT_EDITOR=vim Setting the default editor for all programs Set the standardized VISUAL and EDITOR environment variables*: export VISUAL=vim export EDITOR=”$VISUAL” NOTE: Setting both is not necessarily needed, but some programs … Read more

Why should I use an IDE? [closed]

It really depends on what language you’re using, but in C# and Java I find IDEs beneficial for: Quickly navigating to a type without needing to worry about namespace, project etc Navigating to members by treating them as hyperlinks Autocompletion when you can’t remember the names of all members by heart Automatic code generation Refactoring … 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