开发者

What's in your python mode hook? [closed]

开发者_运维技巧 It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, visit the help center. Closed 11 years ago.

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))))
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜