Git slows down Emacs to Death – How to Fix this?

There’s a built-in profiler called ELP. You can try something like M-x elp-instrument-package, enter “vc”, and then try finding a file. Afterwards, M-x elp-results will show you a profile report. (Note that if the time is instead being spent in non-vc-related functions, this technique will not show it, but you can instrument further packages if … Read more

Originate edit of remote file using emacs tramp from ssh session

You can set up your emacs-server to use a tcp connection (not just a local socket), and then on the remote side, tell emacsclient to connect to that tcp connection: In your .emacs (setq server-use-tcp t) (setq server-host “name_of_local_machine”) (server-start) And then on the remote side: emacsclient -f ~/.emacs.d/server/server /`hostname`:/path/to/local/file The above call to emacsclient … Read more

Disable warning about emacs.d in load path

Don’t disable the warning. It’s there for a good reason: ~/.emacs.d shouldn’t be in your load-path. This is because Emacs writes files to this directory, and therefore it’s possible (there are existing cases) for those files to conflict with the names of elisp libraries. If you have this directory in your load path, and you … Read more

Changing Emacs Forward-Word Behaviour

Try: (require ‘misc) Then use M-x forward-to-word and see if it does what you want. You can then rebind M-f, etc. To make the _ not a word separator (i.e. make it a word constituent) for C & C++ mode, you would do this: (modify-syntax-entry ?_ “w” c-mode-syntax-table) (modify-syntax-entry ?_ “w” c++-mode-syntax-table) For more information … Read more