;; Launch emacs
(defcommand emacs () ()
(run-or-raise
"urxvt -title emacs -e screen -U -dRR -S emacs -c ~/.screenrc.emacs"
'(:title "emacs" :instance "urxvt" :class "URxvt")))
which will launch emacs (or raise it if it was already launched).Some of the thing you might want to consider when doing "emacs -nw"
- Make sure your TERM is exported appropriatly.
Otherwise you may end up with less colors (M-x list-colors-display).
Screen fiddles with TERM and emacs may end up supporting less colors.
- Copy/Paste between regular X apps and the emacs will not work.
You would need to use something like "xsel". See here [1]
- Some of the keys may not work as expected. This will be
apparent especially when using orgmode. You may want to
remap them appropriately
And also I suggest you use Emacs + Wanderlust setup for email (and put it in a screen session as well).[1] http://hugoheden.wordpress.com/2009/03/08/copypaste-with-ema...