我使用 emacs 作为 Python IDE。我已经安装了 yasnippet,但我怎样才能让它支持 PyQt?这是我的 .emacs:
(require 'auto-complete)
(add-to-list 'ac-dictionary-directories "~/.emacs.d/dict")
(require 'auto-complete-config)
(if (load "auto-complete-scite-api" t)
(setq-default ac-sources (cons 'ac-source-scite-api ac-sources)))
(ac-config-default)
(require 'auto-complete-yasnippet)
(require 'pymacs)
(autoload 'pymacs-apply "pymacs")
(autoload 'pymacs-call "pymacs")
(autoload 'pymacs-eval "pymacs" nil t)
(autoload 'pymacs-exec "pymacs" nil t)
(autoload 'pymacs-load "pymacs" nil t)
(require 'python)
(require 'yasnippet)
(yas/initialize)
(yas/load-directory "~/.emacs.d/plugins/yasnippet/snippets")
(yas/global-mode 1)
(require 'python-mode)
(require 'django-html-mode)
(require 'django-mode)
(yas/load-directory "/home/jactry/.emacs.d/snippets")
(add-to-list 'auto-mode-alist '("\\.djhtml$" . django-html-mode))
(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))
我使用 Ubuntu 并安装了自动完成和 yasnippt,我想让我的 emacs 有一个 PyQt 的代码 autp 完成。谢谢。