Slash Boxes
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

TorgoX (1933)


"Il est beau comme la retractilité des serres des oiseaux rapaces [...] et surtout, comme la rencontre fortuite sur une table de dissection d'une machine à coudre et d'un parapluie !" -- Lautréamont

Journal of TorgoX (1933)

Monday February 13, 2006
06:36 AM

I calls it a "hotkey"!!

[ #28665 ]
Dear Log,

Today's hack from my ~/.emacs file:

(global-set-key "\M-t" 'spawn-terminal)
(defun spawn-terminal ()
  "Spawn a new terminal window"
    ((string-equal "screen" (getenv "TERM"))
     (shell-command "screen -X screen")) ;DWIM!

    ((string-equal "x" window-system)
     (shell-command "gnome-terminal&"))

    (t (error
     "I don't know how to spawn a terminal"))))

Customize as you like.

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
More | Login | Reply
Loading... please wait.