Mercurial > hg > config
annotate .emacs @ 872:633487219ed6
add web process waiter skeleton
author | Jeff Hammel <k0scist@gmail.com> |
---|---|
date | Tue, 07 May 2019 10:39:27 -0700 |
parents | 977b5789cfe8 |
children | 7953c011d16a |
rev | line source |
---|---|
856 | 1 (require 'package) |
2 (custom-set-variables | |
3 ;; custom-set-variables was added by Custom. | |
4 ;; If you edit it by hand, you could mess it up, so be careful. | |
5 ;; Your init file should contain only one such instance. | |
6 ;; If there is more than one, they won't work right. | |
7 '(package-archives | |
8 (quote | |
9 (("gnu" . "http://elpa.gnu.org/packages/") | |
857 | 10 ("melpa-stable" . "http://stable.melpa.org/packages/")))) |
11 '(package-selected-packages (quote (haskell-mode)))) | |
856 | 12 (package-initialize) |
13 | |
362
ad10f719d160
hopefully fix this damn thing
Jeff Hammel <jhammel@mozilla.com>
parents:
359
diff
changeset
|
14 (setq max-specpdl-size 5000) |
ad10f719d160
hopefully fix this damn thing
Jeff Hammel <jhammel@mozilla.com>
parents:
359
diff
changeset
|
15 |
347 | 16 (setq initial-scratch-message ";; scratch ;; |
17 | |
18 ") | |
19 | |
504
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
20 ;; server: gnuserv |
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
21 ;; http://www.emacswiki.org/emacs/GnuClient |
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
22 (if (boundp 'gnuserv-start) (gnuserv-start)) |
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
23 ;; frames: http://www.emacswiki.org/emacs/GnuClient#toc6 |
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
24 (setq gnuserv-frame (selected-frame)) |
c805a31fe0f5
http://www.emacswiki.org/emacs/GnuClient
Jeff Hammel <jhammel@mozilla.com>
parents:
368
diff
changeset
|
25 |
297 | 26 ;;;; bars |
27 | |
28 ;; Turn off the status bar and on the mouse if we're not in a window system | |
29 (menu-bar-mode (if window-system 1 -1)) | |
30 | |
31 ;; no need for a tool bar | |
760
d0b975ffabdf
http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then
Jeff Hammel <k0scist@gmail.com>
parents:
703
diff
changeset
|
32 ;; http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then |
d0b975ffabdf
http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then
Jeff Hammel <k0scist@gmail.com>
parents:
703
diff
changeset
|
33 (if window-system |
d0b975ffabdf
http://serverfault.com/questions/132055/how-to-check-if-emacs-is-in-gui-mode-and-execute-tool-bar-mode-only-then
Jeff Hammel <k0scist@gmail.com>
parents:
703
diff
changeset
|
34 (if (boundp 'tool-bar-mode) (tool-bar-mode 0))) |
297 | 35 |
36 ;; ...or a startup message | |
309 | 37 ;; instead, it'd be nice to start with a list of recent files (recentf) |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
38 (setq inhibit-startup-message t) |
297 | 39 |
40 ;; no f-ing backup files | |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
41 (setq make-backup-files nil) |
297 | 42 |
43 ;; show trailing whitespace | |
44 (setq-default show-trailing-whitespace t) | |
45 | |
300 | 46 ;;;; ??? no idea |
297 | 47 |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
48 (put 'downcase-region 'disabled nil) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
49 (setq truncate-lines nil) |
297 | 50 (setq truncate-partial-width-windows nil) |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
51 (setq use-file-dialog nil) |
75
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
52 |
280 | 53 ;; make directories when they don't exist |
54 ;; from http://stackoverflow.com/questions/6830671/how-to-make-emacs-create-intermediate-dirs-when-saving-a-file | |
55 (add-hook 'before-save-hook | |
56 (lambda () | |
57 (when buffer-file-name | |
58 (let ((dir (file-name-directory buffer-file-name))) | |
59 (when (not (file-exists-p dir)) | |
60 (make-directory dir t)))))) | |
61 | |
297 | 62 ;;;; indentation |
75
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
63 |
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
64 ;; python indentation |
120
339805e00f03
set python spacing back to four, by popular demand
Jeff Hammel <jhammel@mozilla.com>
parents:
75
diff
changeset
|
65 (setq python-indent 4) |
339805e00f03
set python spacing back to four, by popular demand
Jeff Hammel <jhammel@mozilla.com>
parents:
75
diff
changeset
|
66 (setq-default py-indent-offset 4) |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
67 (setq python-guess-indent nil) |
75
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
68 |
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
69 ;; javascript indentation: http://www.brgeight.se/downloads/emacs/javascript.el |
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
70 (setq javascript-indent-level 2) |
148 | 71 (setq js-indent-level 2) |
75
89a64b0d6146
adding indentation for javascript
Jeff Hammel <jhammel@mozilla.com>
parents:
62
diff
changeset
|
72 |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
73 (setq-default indent-tabs-mode nil) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
74 (defface extra-whitespace-face '((t (:background "pale green"))) "Used for tabs and such.") |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
75 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
76 (autoload 'doctest-mode "doctest-mode" "doctest editing mode." t) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
77 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
78 (transient-mark-mode 1) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
79 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
80 (put 'upcase-region 'disabled nil) |
297 | 81 |
82 ;;;; line/col #s | |
309 | 83 ;;;; Show line and column numbers in the mode line |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
84 (line-number-mode 1) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
85 (column-number-mode 1) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
86 |
309 | 87 |
297 | 88 ;;;; modes |
89 | |
90 ;; Bind major editing modes to certain file extensions | |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
91 (setq auto-mode-alist (cons '("\\.zcml$" . sgml-mode) auto-mode-alist)) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
92 (setq auto-mode-alist (cons '("\\.pt$" . sgml-mode) auto-mode-alist)) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
93 (setq auto-mode-alist (cons '("\\.cpt$" . sgml-mode) auto-mode-alist)) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
94 (setq auto-mode-alist (cons '("\\.cpy$" . python-mode) auto-mode-alist)) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
95 (setq auto-mode-alist (cons '("\\.vpy$" . python-mode) auto-mode-alist)) |
842
03f9657514e9
while we might not want Octave *that* much, we will never want OCAML
Jeff Hammel <k0scist@gmail.com>
parents:
760
diff
changeset
|
96 (setq auto-mode-alist |
03f9657514e9
while we might not want Octave *that* much, we will never want OCAML
Jeff Hammel <k0scist@gmail.com>
parents:
760
diff
changeset
|
97 (cons '("\\.m$" . octave-mode) auto-mode-alist)) |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
98 |
300 | 99 ;; set the grep command....for some reason |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
100 (setq grep-command "grep -liE") |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
101 |
300 | 102 |
103 ;;;; recent history stuff | |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
104 (require 'recentf) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
105 (recentf-mode 1) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
106 (setq recentf-max-menu-items 25) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
107 (global-set-key "\C-x\ \C-r" 'recentf-open-files) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
108 |
300 | 109 ;;;; full-steam-ahead-and-damn-the-torpedoes |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
110 (defun |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
111 full-steam-ahead-and-damn-the-torpedoes |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
112 (prompt) t) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
113 (defalias 'y-or-n-p |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
114 'full-steam-ahead-and-damn-the-torpedoes) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
115 (defalias 'yes-or-no-p |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
116 'full-steam-ahead-and-damn-the-torpedoes) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
117 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
118 (require 'uniquify) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
119 (setq uniquify-buffer-name-style 'post-forward) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
120 |
300 | 121 ;;;; |
122 | |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
123 ;; wheel mouse |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
124 (global-set-key [mouse-4] 'scroll-down) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
125 (global-set-key [mouse-5] 'scroll-up) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
126 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
127 ;; substring buffer switching mode |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
128 (iswitchb-mode 1) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
129 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
130 (global-set-key "\M-g" 'goto-line) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
131 |
297 | 132 ;;;; python |
133 | |
0
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
134 ;; (when (load "flymake" t) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
135 ;; (defun flymake-pyflakes-init () |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
136 ;; (let* ((temp-file (flymake-init-create-temp-buffer-copy |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
137 ;; 'flymake-create-temp-inplace)) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
138 ;; (local-file (file-relative-name |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
139 ;; temp-file |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
140 ;; (file-name-directory buffer-file-name)))) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
141 ;; (list "pyflakes" (list local-file)))) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
142 ;; (add-to-list 'flymake-allowed-file-name-masks |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
143 ;; '("\\.py\\'" flymake-pyflakes-init))) |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
144 |
f3ab51c79813
adding configuration from https://svn.openplans.org/svn/config_jhammel/
k0s <k0scist@gmail.com>
parents:
diff
changeset
|
145 ;; (add-hook 'find-file-hook 'flymake-find-file-hook) |
4 | 146 |
147 (fset 'break "import pdb; pdb.set_trace();\C-a\C-i") | |
148 (add-hook 'python-mode-hook | |
149 '(lambda () | |
150 (local-set-key [(meta ?p) (meta ?p)] 'break))) | |
347 | 151 |
572 | 152 (fset 'pytodo "raise NotImplementedError('TODO') # -> record TODO items") |
571 | 153 |
347 | 154 (fset 'python-file "#!/usr/bin/env python |
585 | 155 # -*- coding: utf-8 -*- |
347 | 156 |
589 | 157 import argparse |
347 | 158 import os |
621 | 159 import subprocess |
347 | 160 import sys |
161 | |
658 | 162 __all__ = ['main'] |
347 | 163 here = os.path.dirname(os.path.realpath(__file__)) |
644 | 164 string = (str, unicode) |
347 | 165 |
166 def main(args=sys.argv[1:]): | |
167 | |
658 | 168 # parse command line |
625
e92bd004b906
STUB: .emacs python/example/func_args.py
Jeff Hammel <k0scist@gmail.com>
parents:
621
diff
changeset
|
169 parser = argparse.ArgumentParser(description=__doc__) |
633 | 170 parser.add_argument('input', nargs='?', |
171 type=argparse.FileType('r'), default=sys.stdin, | |
172 help='input file, or read from stdin if ommitted') | |
586 | 173 options = parser.parse_args(args) |
347 | 174 |
175 if __name__ == '__main__': | |
176 main()") | |
348
6004e00b602d
new hg file; TODO: incorporate!
Jeff Hammel <jhammel@mozilla.com>
parents:
347
diff
changeset
|
177 ;; TODO: take directly from MakeItSo |
644 | 178 ;; - makeitso should output .el files from the templates |
347 | 179 |
513 | 180 (fset 'python-require "def require(url): |
181 # http://k0s.org/hg/config/file/68635bbb3d3e/python/require.py | |
182 # import a module from the web | |
183 # url should be like scheme://host.name/path/to/module.py | |
184 | |
185 import imp | |
186 import os | |
187 import tempfile | |
188 import urllib2 | |
189 contents = urllib2.urlopen(url).read() | |
190 filename = url.rsplit('/', 1)[-1] | |
191 module = filename.rsplit('.', 1)[0] | |
192 dest = tempfile.mkstemp(suffix='.py', prefix=module) | |
193 f = file(dest, 'w') | |
194 f.write(contents) | |
195 f.close() | |
196 return imp.load_source(module, dest) | |
197 ") | |
198 | |
597 | 199 (fset 'python-test "#!/usr/bin/env python |
359
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
200 |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
201 import os |
641
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
202 import shutil |
638 | 203 import tempfile |
359
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
204 import unittest |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
205 |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
206 here = os.path.dirname(os.path.abspath(__file__)) |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
207 |
621 | 208 class Test(unittest.TestCase): |
638 | 209 def test_basic(self): |
641
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
210 tmpdir = tempfile.mkdtemp() |
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
211 try: |
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
212 pass |
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
213 finally: |
15c20cfc6b22
create tmpdir for test as boilerplate
Jeff Hammel <k0scist@gmail.com>
parents:
638
diff
changeset
|
214 shutil.rmtree(tmpdir) |
359
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
215 |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
216 if __name__ == '__main__': |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
217 unittest.main() |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
218 ") |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
219 |
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
220 |
347 | 221 ;;; TODO |
222 ; - needless to say, zeitgeist integration | |
359
07d01606da84
add a macro for mozbase tests
Jeff Hammel <jhammel@mozilla.com>
parents:
348
diff
changeset
|
223 ; - http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/ |
857 | 224 (custom-set-faces |
225 ;; custom-set-faces was added by Custom. | |
226 ;; If you edit it by hand, you could mess it up, so be careful. | |
227 ;; Your init file should contain only one such instance. | |
228 ;; If there is more than one, they won't work right. | |
229 ) |