# flauxtext's configuration file [python code EXECUTED in the global namespace] if os.name == 'posix': termcmd = 'Eterm -f lightblue -c lightblue -P ~/bg.gif@:tiled -e ' webbrowsercmd = 'firefox ' cvscmd = termcmd + 'sudo cvs commit ' defaultsavepath = '/' execrc = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'exec_rc.flauxtext') filemanagercmd = termcmd+'"%s"' font = 'Courier New 12' gtkchthemecmd = 'gtk-chtheme' maxwindowatstart = False plugindir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'plugins') pop3saveallto = None printer = 'lpr' pycmd = 'python -O ' runcmds = {'*.ps':'display "%(full)s"', '*.pyw':pycmd+'"%(full)s" &', '*.py':pycmd+'"%(full)s"', '*.m':'matlab "%(full)s"', '*.html':webbrowsercmd+'"%(full)s"', '*.htm':webbrowsercmd+'"%(full)s"', '*.flauxtext':pycmd + __file__, '*.java':['javac "%(full)s"', 'cd "%(dir)s"', termcmd+'java "%(base)s"'], '*.tex':['cd %(dir)s && ' + termcmd + 'pdflatex "%(base)s%(ext)s"', 'xpdf "%(dir)s/%(base)s.pdf"'], '*.xpm':'display "%(full)s"', '*.c':'gcc %(full)s', '*.hs':'ghc "%(full)s"', '*.cs':['msc "%(full)s"', termcmd + 'mono "%(dir)s/%(base)s.exe" && cat -'], '*.jontex': ['cd "%(dir)s" && jontex "%(full)s"', 'xpdf "%(dir)s/%(base)s.pdf"']} sftpcmd = '/usr/bin/sftp ' tempdir = '/tmp' transparency = False winderpos = [0, 0] windersize = [1200, 925] canspellcheck = (os.popen3('aspell')[2].read() == '') elif os.name == 'nt': termcmd = 'start cmd /c ' webbrowsercmd = '"C:\\Program Files\\Mozilla Firefox\\firefox.exe" ' cvscmd = termcmd+'cvs -z3 commit ' defaultsavepath = 'C:\\' execrc = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'exec_rc.flauxtext') filemanagercmd = 'explorer "%s"' font = 'Courier New 10' gtkchthemecmd = '"C =\\Program Files\\Common Files\\GTK\\2.0\\gtk2_prefs.exe"' maxwindowatstart = True plugindir = os.path.join(os.path.dirname(os.path.abspath(__file__)), 'plugins') pop3saveallto = None printer = [] pycmd = 'python -O ' runcmds = {'*.pyw':'C:\\Python24\\pythonw.exe "%(full)s"', '*.py':termcmd+'"%(full)s" && pause', '*.kid':termcmd+pycmd+'c:\\python23\\scripts\\kid "%(full)s" > "%(base)s.html" && '+webbrowsercmd+'"%(base)s.html"', '*.flauxtext':'start d:\\flaux\\txt\\flauxtext.pyw', '*.m':'matlab -r "%(full)s"', '*.html':termcmd+'start "%(full)s"', '*.htm?':termcmd+'firefox "%(full)s"', '*.csv':'"C:\\Program Files\\Microsoft Office\\OFFICE11\\EXCEL.EXE" "%(full)s"', '*.tex':[termcmd+'pdflatex "%(full)s"', '"%(dir)s\\%(base)s.pdf"'], '*.java':'cd "%(dir)s" && javac %(base)s.java && java %(base)s', '*.c':'gcc %(full)s -o %(dir)s\\%(base)s.exe && start cmd /c "%(dir)s\\%(base)s && pause"', '*.cpp':'g++ %(full)s -o %(dir)s\\%(base)s.exe && start cmd /c "%(dir)s\\%(base)s && pause"'} spellcheck = {'*.tex':{'\\.*':2}} sftpcmd = 'telnet ' tempdir = os.environ['TEMP'] transparency = 230 winderpos = [0, 0] windersize = [1213, 900] try: import win32com canspellcheck = True except: canspellcheck = False else: raise ValueError, "sorry, but i don't recognize your os. please reconfigure config.flauxtext" proxyserver = '' proxyname = '' proxypass = '' ftpserver = '' ftpname = '' ftppass = '' sftpserver = '' sftpname = '' smtpserver = '' smtpname = '' smtpfromlist = [] smtpalias = {'author':'faulkner@users.sf.net', } pop3servers = [''] pop3names = [''] pop3passes = [''] pop3textplainonly = True pop3format = ['DATE', 'subject', 'from', 'n_attachments'] pop3dateformat = '%m/%d-%I:%M%P' pop3shortfrom = True pop3where = 'tab' pop3pos = (700, 1000) bash_stub = '#!/bin/sh\n\n' c_stub = '#include \n\n\nint main() {\n \n}' html_stub = '\n\n\n\n\n\n\n\n\n\n\n\n\n' java_stub = 'import java.*\n\n/**\n *\n */\npublic class {\n public static void main(String[] argv){\n }\n }' python_stub = "#!/usr/bin/env python\n''' \n'''\nimport pygtk, gtk, os, sys, string, re, math, smtplib, poplib, urllib, time, socket, fnmatch, email\n\n\ndef main(*a):\n '''\n '''\n\n\nif __name__ == '__main__':\n sys.exit(main(*sys.argv[1:]))" tex_stub = "\\documentclass[10pt]{article}\n\\special{papersize=8.5in,11.0in}\n\\usepackage{graphicx,hyperref}\n\\author{}\n\\title{}\n\\date{}\n\\begin{document}\n\\maketitle\n\\newpage\n\\section{}\n\n\n\n\n\n\n\n\\end{document}" autoindent = True autosaveinit = True autosavenseconds = 2 checkforalreadyrunning = True checkforunsavedbeforequitting = True collabchatpos = (700, 1000) collabcolor = '#AABBFF' collabnick = '' collabtimestamps = True commentchars = {'*.pyw':'#', '*.py':'#', '*.java':'//', '*.c':'//', '*.htm?':(''), '*.asm':';', '*.m':'%', '*.tex':'%'} createifdne = True dragdropopentextonly = True findasktowrap = False findcombobox = False findoneshot = False findparens = True findparenstyle = {'None':{'background':'red', 'underline':pango.UNDERLINE_SINGLE}, '(':{'background':'blue'}, ')':{'background':'blue'}, '[':{'background':'blue'}, ']':{'background':'blue'}, '{':{'background':'blue'}, '}':{'background':'blue'}, '<':{'background':'blue'}, '>':{'background':'blue'}} foundtexttagstyle = {'background':'red', 'foreground':'blue', 'underline':pango.UNDERLINE_SINGLE} fstinit = False fstinittext = """def fst(m):\n ''' takes a match object as returned by re.match, returns the string to replace it with.\n '''\n return m.string[m.start() : m.end()]""" highlighton = True highlightextensions = {'*.py':'Python', '*.pyw':'Python', '*.java':'Java', '*.c':'C++', '*.h':'C++', '*.ini':'.ini', '*.html':'HTML', '*.htm':'HTML', '*.css':'CSS', '*.tex':'LaTeX', '*.sh':'sh', '*.xml':'XML'} infodialogwhen = [] keepaboveothers = False lenmru = 40 linenums = 'Left' linenumwindowsize = 40 loggingfilenameformat = '%y%m%d' logginginit = True loggingtimestampformat = '%X' maxparenlen = 5000 menustatbar = True mrunumbers = False neveropenbinary = True newbufferoncloselast = False ntabn = 5 openshowhidden = True openspecialsatstart = False parenhilitems = 200 passchar = u'\N{bullet}' pygtkrefurl = '"http://home.comcast.net/~faulkner612/pygtkref.html"' randominfostatusbarquotes = False rightedge = False rightedgecol = 80 shortmrunames = True showstatbar = True spaceselectedinsertstring = ' ' statbarcursorformat = "Ln %d / Col %d" statbarorder = ["info", "insovr", "capslock", "cursor"] statbarresizegrip = ["info"] statlen = 7 tabbarlocation = gtk.POS_TOP tabsvisible = True tabshideifone = True tearoffmenus = True timeformat = '%a, %d %b %Y %H:%M:%S %z; epoch: \3p0k' toolbarvert = None toolbariconsize = gtk.ICON_SIZE_SMALL_TOOLBAR toolbarstyle = gtk.TOOLBAR_BOTH ubbs = [] updatetitlemilliseconds = 700 usectrltabs = True windowtitle = 'flauxtext - %s' windowtitlemodified = ' *********' wordwrappref = gtk.WRAP_NONE wordwraps = [gtk.WRAP_NONE, gtk.WRAP_WORD, gtk.WRAP_CHAR]