autoloadでpython-modeをロードします。 .pyという拡張子でpython-modeを呼び出すのはpython-mode.elで実行しているようなので、記載していません。 (autoload 'python-mode "python-mode" "Python editing mode." t) (custom-set-variables '(py-indent-offset 4) ) (add-hook 'python-mode-hook '(lambda() (setq tab-width 4) (setq indent-tabs-mode nil) ) ) 個人的にインデントはwhitespaceのタブ幅2が好きなのですが、 pythonのコーディングガイドの提案にwhitespaceのタブ幅4にせよと記載されているので、それに習います。 Indentation Us