What's in your python mode hook? [closed]
I'm starting to look at python, trying to bootstrap myself here.
What's in your python mode hook?
I have some experience with emacs, but I'm not familiar with python.
- what's the preferred python mode? I have emacs 23.2 on Windows.
- Is there a flymake-for-python? (how do I set it up?)
- does autopair work with python? (how)
- does auto-complete work with python? (hints?)
- etc etc
Thanks for any tips you can offer.
Re: autopair. Yes, it works. I have autopair.el version 0.3. The docs at the top of autopair.el have an extension that makes triple quotes work.
My setup:
(require 'autopair)
(autopair-global-mode) ;; enable autopair in all buffers
(setq autopair-autowrap t) ;; attempt to wrap selection
;; this mode-hook is taken straight from the comments in autopair.el
(add-hook 'python-mode-hook
#'(lambda ()
(setq autopair-handle-action-fns
(list #'autopair-default-handle-action
#'autopair-python-triple-quote-action))))
精彩评论