#@+leo
#@+node:0::@file plugins/mod_xemacs.py
#@+body
"""emacs handler"""

from leoPlugins import *
from leoGlobals import *

def open_in_emacs (tag,keywords):
	if top():
		top().frame.OnOpenWith(("os.spawnl", "/usr/bin/gnuclient", None))

if 1: # Register the handlers...
	registerHandler(("iconclick2","select2"), open_in_emacs)
	
	import mod_xemacs
	es("...xemacs v1.1: " + plugin_date(mod_xemacs))
#@-body
#@-node:0::@file plugins/mod_xemacs.py
#@-leo
