Mercurial > hg > config
comparison .emacs @ 347:c0f0f82f68ea
better thing
| author | Jeff Hammel <jhammel@mozilla.com> |
|---|---|
| date | Wed, 26 Jun 2013 09:22:30 -0700 |
| parents | a9d3f1210506 |
| children | 6004e00b602d |
comparison
equal
deleted
inserted
replaced
| 346:7eaaf99e3182 | 347:c0f0f82f68ea |
|---|---|
| 1 (setq initial-scratch-message ";; scratch ;; | |
| 2 | |
| 3 ") | |
| 4 | |
| 1 ;; ;; ;; emacs server (what a piece of crap) | 5 ;; ;; ;; emacs server (what a piece of crap) |
| 2 ;; (require 'server) | 6 ;; (require 'server) |
| 3 ;; (unless (server-running-p) | 7 ;; (unless (server-running-p) |
| 4 ;; (server-start)) | 8 ;; (server-start)) |
| 5 ;; ;; ;; An error has occurred while loading `/home/jhammel/.emacs': | 9 ;; ;; ;; An error has occurred while loading `/home/jhammel/.emacs': |
| 135 | 139 |
| 136 (fset 'break "import pdb; pdb.set_trace();\C-a\C-i") | 140 (fset 'break "import pdb; pdb.set_trace();\C-a\C-i") |
| 137 (add-hook 'python-mode-hook | 141 (add-hook 'python-mode-hook |
| 138 '(lambda () | 142 '(lambda () |
| 139 (local-set-key [(meta ?p) (meta ?p)] 'break))) | 143 (local-set-key [(meta ?p) (meta ?p)] 'break))) |
| 144 | |
| 145 (fset 'python-file "#!/usr/bin/env python | |
| 146 | |
| 147 ''' | |
| 148 | |
| 149 ''' | |
| 150 | |
| 151 import optparse | |
| 152 import os | |
| 153 import sys | |
| 154 | |
| 155 here = os.path.dirname(os.path.realpath(__file__)) | |
| 156 | |
| 157 def main(args=sys.argv[1:]): | |
| 158 | |
| 159 usage = '%prog [options]' | |
| 160 parser = optparse.OptionParser(usage=usage, description=__doc__) | |
| 161 options, args = options.parse_args(args) | |
| 162 | |
| 163 if __name__ == '__main__': | |
| 164 main()") | |
| 165 | |
| 166 ;;; TODO | |
| 167 ; - needless to say, zeitgeist integration | |
| 168 ; - http://pedrokroger.net/2010/07/configuring-emacs-as-a-python-ide-2/ |
