Skip to content

Instantly share code, notes, and snippets.

View dinedal's full-sized avatar
👾

Paul Bergeron dinedal

👾
View GitHub Profile
@sshirokov
sshirokov / gist:1116473
Created July 31, 2011 06:07
Tunnel Package For Emacs Nerds v0.0.1
;; Tunnel boot scaffold [elisp]
(defun toggle-tunnel-out (&optional again)
(interactive "P")
(let* ((bname " *tun*")
(tun (get-buffer bname)))
(if tun
(let ((kill-buffer-query-functions nil))
(kill-buffer tun))
(async-shell-command "~/bin/loop-tunnel.sh" " *tun*")))
(when again (toggle-tunnel-out)))