私はPythonモードを使用しています(デフォルトではemacs 23に付属していません)。
現在emacsにロードされているPythonプログラムを実行できませんでした。
「シンボルの関数定義が無効です:smart-operator-mode-on」エラーが発生します。
手がかりやヒントがあればPythonプログラムが作成され、emacsで実行して、結果の出力ウィンドウを表示できますか?
ここにemacsエラーレポートがあります。
Debugger entered--Lisp error: (void-function smart-operator-mode-on)
(smart-operator-mode-on)
(lambda nil (set-variable (quote py-indent-offset) 4)
(set-variable (quote indent-tabs-mode) nil) (define-key py-mode-map (kbd "RET") (quote newline-and-indent)) (smart-operator-mode-on))()
run-hooks(python-mode-hook)
(if python-mode-hook (run-hooks (quote python-mode-hook)) (run-hooks (quote py-mode-hook))) python-mode()
私のinit_python.elスクリプト
(autoload 'python-mode "python-mode" "Python Mode." t)
(add-to-list 'auto-mode-alist '("\\.py\\'" . python-mode))
(add-to-list 'interpreter-mode-alist '("python" . python-mode))
(require 'python-mode)
(add-hook 'python-mode-hook
(lambda ()
(set-variable 'py-indent-offset 4)
;(set-variable 'py-smart-indentation nil)
(set-variable 'indent-tabs-mode nil)
(define-key py-mode-map (kbd "RET") 'newline-and-indent)
;(define-key py-mode-map [tab] 'yas/expand)
;(setq yas/after-exit-snippet-hook 'indent-according-to-mode)
(smart-operator-mode-on)
))