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

Automatically closing braces in Emacs?

There’s also ‘paredit. The cheat sheet shows you all the commands available. happen to like it better than the electric mode suggested in another answer. Though paredit does only apply to (), so it may not meed your needs. But, to be honest, there’s a bunch of packages surrounding parenthesis. The wiki has them all … Read more