2012-06-21 46 views
0

我是Fedora 17和Emacs的新手,無法弄清楚如何告訴我的emacs使用最新版本的python。python3 interpreter for emacs而不是2.7

我發現了一些信息,我應該改變python-python-command變量或顯示新解釋器的路徑,怎麼做?

+2

可能重複(http://stackoverflow.com/questions/11071701/python-3-in-emacs) – huon

回答

5
(setq py-python-command "/usr/bin/python3.1") 

應該被添加到您的.emacs文件的[在Emacs的Python 3]

+0

哪裏它應該寫? – zest

+0

.emacs文件,請參閱文章 – HaloWebMaster

+0

vi .emacs在主目錄中的插入模式我已將此行放在文件末尾。 「Esc」(退出插入模式)和:x保存更改。所有作品都謝謝你。 – zest