News for hackers. Stuff that matters.
Re:Emacs and Screen by jrockway on Friday February 12, 2010 @09:48PM (#1122434)
Don't do this. Instead, start emacs. Run M-x server-start. Now to edit a file, just say "emacsclient -t filename". You are instantly connected to your running emacs session, in the terminal you are currently working in. You can have an arbitrary number of these. C-x C-c closes the instance you are working in, not every instance.

I just run "emacs --daemon" when I log in, "emacsclient -c" to get my main emacs X frame, and then "emacsclient -t foo.bar" when I need to edit something. (Actually, I alias "emacsclient -t" to "ec", so "ec foo.bar".)

If you don't want to install Emacs for some reason, "mg" is a much better choice than vi or nano.

Re:Emacs and Screen by lqdshadow on Saturday February 13, 2010 @12:32AM (#1122609)
Or "vim". "vi" is the editor wars' straw man. Never heard of mg.
Re:Emacs and Screen by jrockway on Saturday February 13, 2010 @04:33AM (#1122818)
When people say vi, they mean vim.
Re:Emacs and Screen by _b8r0 on Saturday February 13, 2010 @05:56AM (#1122893)
Unless they actually mean vi. Not all vi implementations are Vim, especially those on Unices.
Re:Emacs and Screen by silentbicycle on Saturday February 13, 2010 @07:44AM (#1122958)
mg is a smaller, only slightly configurable editor that behaves like Emacs's defaults.