![](/img/trans.png)
[英]Emacs: Why major mode is not set correctly when file is opened?
當我打開.py文件(emacs test.py)時,為什么主模式沒有自動設置為python-mode? 我的.emacs中處理python的某些部分是: 左窗口應顯示ipython shell,右窗口應顯示打開的文件test.py。 一切正常,但是test.py處於基本模式,實際上暫 ...
[英]Emacs: Why major mode is not set correctly when file is opened?
當我打開.py文件(emacs test.py)時,為什么主模式沒有自動設置為python-mode? 我的.emacs中處理python的某些部分是: 左窗口應顯示ipython shell,右窗口應顯示打開的文件test.py。 一切正常,但是test.py處於基本模式,實際上暫 ...
[英]Emacs Inferior Python shell shows the send message with each python-shell-send-region command
我在 OS X(El Capitan)上使用 Python 劣質 shell,每次我向 Python 進程發送一段代碼(使用綁定到python-shell-send-region Cc Cr )時,我都會收到這樣的消息Python外殼: 我不希望每次調用命令時都顯示此消息。 Linux上同版本 ...
[英]Emacs24 and python-mode: indention in docstrings
我有以下代碼/文本: 在Emacs23(23.4.1)中,我能夠在最后一行(“第二條注釋行”;更確切地說是如何縮進該行)中按TAB鍵,並且這樣正確對齊: 即,它使用上一行,並以相同的方式縮進下一行。 現在在Emacs24(24.3.1)中,此功能不再起作用,並按如下所示對齊 ...
[英]looking for help in configuring .emacs file for python (python.el),
我的emacs版本是24.5,使用內置的python。 我已經在我的.emacs寫了這些行: 問題出在所有命令都沒有(當我嘗試運行test.py )。 我已經嘗試了幾個名為like的命令 他們都回來了 我做錯了什么? 我應該做些什么? 理想的配置( .emacs ...
[英]Emacs 24's python.el + ipython cannot complete module names
我在OSX(隨Homebrew一起安裝)上使用Emacs 24.4.1,以及內置的python.el和Python 3(也隨Homebrew一起安裝)以及IPython 2.3.0。 我的.emacs有這個: (setq python-shell-interpreter "/usr/loc ...
[英]how to configure python.el for emacs to use python3 shell?
我是emacs的新手。 我安裝了具有內置python模式(python.el)的emacs24。 我找不到此文件,也不知道如何配置它以使用python3 shell(默認情況下使用python2.7)。 坦克斯 ...
[英]Eval region ipython interpreter in aquamacs
我正在努力使Aquamacs 3.0a GNU Emacs 24.3.50.2與iPython 1.2.0一起使用作為解釋器。 我能夠使用python.el中的指令使iPython基本上正常工作。 特別是,我加入最多的回答給出的設置, 這里給我的.emacs文件,但我仍然能看到一些奇怪的行為 ...
[英]Emacs: Altering python.el indentation in derived mode
我正在嘗試從Boo的python.el(當前的官方gnu版本)派生新的emacs模式,並且在更改縮進方面遇到麻煩。 有人對如何最好地解決這個問題有任何建議嗎? 我不需要徹底更改任何內容,只需添加一些新的塊形式和內容。 例如,由於這是針對Boo的,因此try / except語法使用“確 ...
[英]Set Python project root in Emacs?
emacs-for-python (基於python.el )提供了很好的功能來啟動 Python 進程並直接從 Emacs 發送緩沖區(通常你用Cc Cc來做)。 但是,這種方式會為每個緩沖區創建新進程,並將 Python 的工作目錄設置為相應文件的目錄。 相反,我希望將工作目錄設置為項目根目 ...