我是Emacs的新手(1周左右),我正在努力配置一些配置。对不起,如果我听起来新手。我在最后两天尝试了许多不同的东西。这就是我想要设置的内容:
所以,我用Melpa安装了这3个包。
然后我将~/.emacs
编辑为:
; MELPA
(require 'package)
(add-to-list 'package-archives
'("melpa" . "https://melpa.org/packages/"))
(when (< emacs-major-version 24)
(add-to-list 'package-archives '("gnu" . "http://elpa.gnu.org/packages/")))
(package-initialize)
(add-to-list 'package-archives
'("melpa-stable" . "https://stable.melpa.org/packages/") t)
; COMPANY
(add-hook 'after-init-hook 'global-company-mode)
; COMPANY HEADERS C
(add-to-list 'company-backends 'company-c-headers)
; COMPANY IRONY
(eval-after-load 'company
'(add-to-list 'company-backends 'company-irony))
但无论我尝试什么,我都无法自动完成!怎么了?