Pythonのソースコードを書く際、最近はめっきり X11 gnome + emacs + python-mode + pycomplete + cedet + ecb な開発環境でのですが、このpython-modeの使用感に微妙な違和感があるのでカスタマイズしてみました。 ちなみに、Eclipse + PyDEV plugin + WTP plugin という開発環境もありだと思いますが、いろいろトータルで見るとこっちの方がプログラムを書いてて楽しげです。 問題 py-help-at-point および python-execute-* 関数を呼んだときに以下の問題がある カーソルのフォーカスが*Help*や*Python Output*バッファの方に飛んでしまう ヘルプ表示やコードを実行した後、すぐにコーディングに戻れない(C-x oが必要)ので、ストレスがたまる 実行した結果のデー
Python, emacs | 18:33Python-modeではCtrl-h fでpydoc表示されるようにするコード。.emcasへ。 ;;----pydoc lookup---- (defun hohe2-lookup-pydoc () (interactive) (let ((curpoint (point)) (prepoint) (postpoint) (cmd)) (save-excursion (beginning-of-line) (setq prepoint (buffer-substring (point) curpoint))) (save-excursion (end-of-line) (setq postpoint (buffer-substring (point) curpoint))) (if (string-match "[_a-z][_\\.0-9a-
Emacs Python completion The purpose of this package is to support Python code completion and to make easier to use Python documentation using Emacs. There are available following features: code completion hitting <TAB> (or <C-M-i>) key: e.g.: time.cl<TAB> -> time.clock time.<TAB> -> list of possible choices description of the element (function/module/class/keyword) at the point hitting <F1> key hi
Python EMACS Extensions This package contains three extensions to python-mode which I find useful when programming python. They are: py-mode-ext.el which allows more convient execution of python code from within emacs than can be done using python-mode. pyp.el which facilitates the insertion of degugging print requests. enhancements to pycomplete (pycomplete.el and pycomplete.py) which shows all p
A friend of mine and I like to show off to each other little Emacs tips and tricks we learn. Today, he introduced to me the very cool AutoComplete.el package. AutoComplete.el is intriguing to me because, unlike ropemacs mode which I've blogged about before, the completions AutoComplete.el provides are inline with your code in a dropdown box instead of in a seperate window (windows in Emacs are wha
PEP8を再読する度、すぐに忘れる僕の脳味噌はどうにかならんのでしょうか。死ねばいいのに... ということでEmacsで編集中にチェックしてもらうことに。flymakeうめぇ。 ググれば似たよな記事が見つかるけど、日本語のものが見えなかったので、せっかくだからblogに書いておく. pep8をチェックするプログラムを入れる(pip無ければeasy_installでも) sudo pip install pep8 .emacsに追加 (defun flymake-pep8-init () (let* ((temp-file (flymake-init-create-temp-buffer-copy 'flymake-create-temp-inplace)) (local-file (file-relative-name temp-file (file-name-directory buff
emacsのpython-modeでもauto-complete.elを使う 2009.05.27 日記 auto-complete, Emacs, google, Python, ubuntu こないだは、R用のauto-complete.el拡張を書いてみたわけですが、ここまで来るとpython開発環境もemacsにしておきたい。 というわけで、どうにか使えるようになったので、まとめてみます。ちなみに当方の環境は32bit ubuntu9.04です。 python開発環境の整備 その前に、python開発環境on emacsの整備から。 実は、emacsとpythonの関係はかなりややこしいことになっていましてemacs21時代はpython-mode.elなるpython-modeが主流だったようなのですが、emacs22ではpython.elなるpython-modeがデフォルトで
ここ日本ではEmacs,PythonいずれもVim、Rubyと比較すればマイノリティ。ので、この組み合わせの開発環境って作ろうと思うと結構大変だったりします。 というわけで、いぢりまくっていたEmacsのpython環境がようやく固まってきたのでメモとしてまとめておきます。 結構長くなりそうなので、2部構成とし今回は基礎環境編ということで次のelispを入れていきます。 -python-mode.el -pymacs.el -ipython.el 導入(ubuntuの場合) [cpp] sudo apt-get install python-mode ipython pymacs [/cpp] 終了。 導入(Winの場合) ubuntuのようにaptみたいな仕組みがないのでお手軽にはできません。ちょっと面倒くさいですがいちから入れていきます。いい加減Winもちゃんとしたパッケージ管理システ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く