Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

emacs 的python.el (转载)

14 views
Skip to first unread message

C/Py

unread,
Dec 21, 2011, 12:20:41 AM12/21/11
to
【 以下文字转载自 Python 讨论区 】
发信人: lins05 (C/Py), 信区: Python
标 题: emacs 的python.el
发信站: 水木社区 (Wed Dec 21 13:19:48 2011), 转信

https://github.com/fgallina/python.el

python官方提供的 python-mode.el和 emacs 官方提供的 python.el 都各有优点和不足
这哥们在python.el基础上做了些优化,总之大概实现了以下内容:

我觉得用起来比原来的顺手多了。

+ Syntax highlighting
+ Solid (auto)indentation support
+ auto-detection of indentation levels for current file
+ Triple quoted strings support (stolen without guilt from
GNU/Emacs' original python.el)
+ Fancy variable assignment colorization
+ Movement commands you'll expect from a major-mode.
+ Python shell integration (not only for Python 2 but also Python 3!)
+ Python shell completion (Same as above!)
+ Python shell virtualenv support (as simple as setting a variable!)
+ PDB Tracking (it even supports ipdb!)
+ Symbol completion that sucks because a running inferior shell
process and valid code in the current buffer are needed (Don't
blame me, it's like that in every python-mode I know). Notice I
don't recommend this thing, use ropemacs instead
+ Skeletons with a tight integration with dabbrev out of the box
+ FFAP (Find Filename At Point), click on an import statement and
go to the module definition.
+ Code check via pychecker by default (this is customizable of
course)
+ Eldoc support (this suffers the same drawbacks as the symbol
completion, but it's the only sane way to do it from Elisp)
+ imenu support to easily navigate your code
+ add-log-current-defun support
+ hideshow support
+ outline support
+ fill paragraph



--
Darkness guides me...


[m [1;37m※ 来源:·水木社区 newsmth.net·[FROM: 222.208.8.*] [m

猫王

unread,
Dec 21, 2011, 12:23:35 AM12/21/11
to
补齐还得靠 ropemacs 啊
我还是继续 ropemacs 吧

【 在 lins05 (C/Py) 的大作中提到: 】
: 【 以下文字转载自 Python 讨论区 】
: 发信人: lins05 (C/Py), 信区: Python
: 标 题: emacs 的python.el
: ...................

--

[m [1;37m※ 来源:·水木社区 newsmth.net·[FROM: 114.247.62.*] [m

C/Py

unread,
Dec 21, 2011, 12:25:10 AM12/21/11
to
ropemacs只管语法分析/补齐那一套,这个是基本的mode
【 在 stid (猫王) 的大作中提到: 】
: 补齐还得靠 ropemacs 啊
: 我还是继续 ropemacs 吧


--
Everyone lives, not everyone truly dies.


[m [1;37m※ 来源:·水木社区 newsmth.net·[FROM: 222.208.8.*] [m

猫王

unread,
Dec 21, 2011, 12:36:19 AM12/21/11
to
怎么会,语法高亮,缩进什么的

【 在 lins05 (C/Py) 的大作中提到: 】
: ropemacs只管语法分析/补齐那一套,这个是基本的mode


--

[m [1;37m※ 来源:·水木社区 newsmth.net·[FROM: 114.247.62.*] [m

海猫

unread,
Dec 21, 2011, 5:24:00 AM12/21/11
to
跟 auto-complete 有啥区别不?

【 在 lins05 (C/Py) 的大作中提到: 】
: ropemacs只管语法分析/补齐那一套,这个是基本的mode


--

[m [1;33m※ 来源:·水木社区 newsmth.net·[FROM: 218.193.186.*] [m

海猫

unread,
Dec 21, 2011, 5:29:28 AM12/21/11
to

【 在 lins05 (C/Py) 的大作中提到: 】
: + FFAP (Find Filename At Point), click on an import statement and
: go to the module definition.
我觉得这个跳转到定义模块那里比较牛逼,能跨文件跳转不?

睡龙

unread,
Dec 21, 2011, 5:27:29 AM12/21/11
to
auto-complete可以调用rope
【 在 SeaCat (海猫) 的大作中提到: 】
: 跟 auto-complete 有啥区别不?


--
οО○╔──╗╱╲╱╲╔──╗○Оο
│ [1;5;33m爱 [m↙│╲封╲╱│↘ [1;5;33m泡 [m│
│↗ [1;5;33m情 [m│╱╲愛╲│ [1;5;33m沫 [m↖│
οО○╚──╝╲╱╲╱╚──╝○Оο
上帝很忙啊,好容易给我安排了一次缘分,
怎能不珍惜呢?


[m [1;36m※ 来源:·水木社区 newsmth.net·[FROM: 182.18.9.*] [m

海猫

unread,
Dec 21, 2011, 5:30:22 AM12/21/11
to
哦,那他跟 yasnippet 是一类的东西咯~

【 在 sleepdragon (睡龙) 的大作中提到: 】
: auto-complete可以调用rope

睡龙

unread,
Dec 21, 2011, 5:32:41 AM12/21/11
to
也不是
【 在 SeaCat (海猫) 的大作中提到: 】
: 哦,那他跟 yasnippet 是一类的东西咯~

C/Py

unread,
Dec 21, 2011, 5:45:35 AM12/21/11
to
这些属于语法分析的范畴,对于emacs + python,最好用的是ropemacs

【 在 SeaCat (海猫) 的大作中提到: 】
: 我觉得这个跳转到定义模块那里比较牛逼,能跨文件跳转不?


--
Darkness guides me...


[m [1;32m※ 来源:·水木社区 newsmth.net·[FROM: 222.208.8.*] [m

C/Py

unread,
Dec 21, 2011, 5:46:27 AM12/21/11
to
auto-complete 是前端,ropemacs是后端
【 在 SeaCat (海猫) 的大作中提到: 】
: 跟 auto-complete 有啥区别不?


0 new messages