несколько проблем:
так как у меня не работает меню что бы пустить питон код, думал здесь работают хоткеи, то завяленный C-c c не сработали(((
дальше дополнения странное, просит указать директорию, но после чего дополняет импорт выпадом меню:
тут же мы видем:
(add-to-list 'load-path "~/.emacs.d/")
(require 'auto-complete-config)
(global-auto-complete-mode t)
(require 'yasnippet)
(yas/initialize)
(yas/load-directory "/usr/share/emacs/site-lisp/yasnippet/snippets")
(load-library "init_python")
(require 'ipython)
(setq py-python-command-args '( "-colors" "Linux"))
(defadvice py-execute-buffer (around python-keep-focus activate)
"return focus to python code buffer"
(save-excursion ad-do-it))
(require 'color-theme)
(color-theme-initialize)
(if window-system
(color-theme-tango))
(if (not (window-system))
(color-theme-tty-dark))
всякие вышеприведенные
кода не работают, говорят нет таких автокомлитов
а если попробовать проавтокомлилить os.err<TAB> то получим такое:
Nothing to complete
Mark set
pymacs-report-error: Python: Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/Pymacs/pymacs.py", line 147, in loop
value = eval(text)
File "<string>", line 1, in <module>
File "build/bdist.linux-i686/egg/ropemode/decorators.py", line 53, in newfunc
return func(*args, **kwds)
File "build/bdist.linux-i686/egg/ropemode/interface.py", line 238, in completions
return _CodeAssist(self, self.env).completions()
File "build/bdist.linux-i686/egg/ropemode/interface.py", line 553, in completions
proposals = self._calculate_proposals()
File "build/bdist.linux-i686/egg/ropemode/interface.py", line 574, in _calculate_proposals
resource, maxfixes=maxfixes)
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/contrib/codeassist.py", line 33, in code_assist
return assist()
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/contrib/codeassist.py", line 318, in __call__
completions = list(self._code_completions().values())
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/contrib/codeassist.py", line 392, in _code_completions
result.update(self._dotted_completions(module_scope, inner_scope))
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/contrib/codeassist.py", line 328, in _dotted_completions
element = found_pyname.get_object()
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pynames.py", line 130, in get_object
if self._get_pymodule() is None:
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pynames.py", line 120, in _get_pymodule
self._current_folder())
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 78, in get_module
module = self.find_module(name, folder)
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 154, in find_module
return self._find_module(modname, folder)
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 166, in _find_module
for src in self.get_source_folders():
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 190, in get_source_folders
result.extend(self._find_source_folders(self.project.root))
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 218, in _find_source_folders
result.extend(self._find_source_folders(resource))
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/pycore.py", line 209, in _find_source_folders
for resource in folder.get_folders():
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/resources.py", line 160, in get_folders
return [resource for resource in self.get_children()
File "/usr/lib/python2.6/site-packages/rope-0.9.2-py2.6.egg/rope/base/resources.py", line 118, in get_children
for name in os.listdir(self.real_path):
OSError: [Errno 13] Permission denied: '/home/pyxap/.tor'
подскажите кто что может