我在https://emacs.stackexchange.com/questions/45056/how-do-i-install-the-evil-package上看到了这个问题,但我无法解释如何用它来帮助我。
我也有同样的问题:
M-x package-install RET evil [No match]我按照这里的指示,https://evil.readthedocs.io/en/latest/overview.html#installation-via-package-el说:
M-x package-refresh-contents
M-x package-install RET evil RET第一个很好用。第二个返回和错误。
我的emacs文件是:
(meta_learning) brandomiranda~ ❯ cat .emacs
;; Open .v files with Proof General's Coq mode
(load "~/.emacs.d/lisp/PG/generic/proof-site")
(add-to-list 'load-path "~/.emacs.d/evil")
(require 'evil)
(evil-mode 1)
(eval-after-load "color-theme"
'(progn
(color-theme-initialize)
(color-theme-dusk)
(when (display-graphic-p)
;; settings for GUI emacs
(add-to-list 'default-frame-alist '(background-color . "#282B35"))
(add-to-list 'default-frame-alist '(foreground-color . "White"))
(set-frame-font "Inconsolata 18" nil t))))
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(ansi-color-faces-vector
[default default default italic underline success warning error])
'(ansi-color-names-vector
["#242424" "#e5786d" "#95e454" "#cae682" "#8ac6f2" "#333366" "#ccaa8f" "#f6f3e8"])
'(custom-enabled-themes (quote (wheatgrass))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)
(load-file (let ((coding-system-for-read 'utf-8))
(shell-command-to-string "agda-mode locate")))怎么解决这个问题?
发布于 2022-04-14 21:32:16
这并不能真正解决被问到的确切问题,但至少它为您安装了emacs:
这对我起了作用:
邪恶手册安装为我工作:https://evil.readthedocs.io/en/latest/overview.html#installation-via-package-el克隆邪恶回购某处你知道的路径,我推荐~,所以运行:
git clone --depth 1 https://github.com/emacs-evil/evil.git然后将这一行添加到~中的.emacs文件中:
vim .emacs加:
(add-to-list 'load-path "path/to/evil")
(require 'evil)
(evil-mode 1)可能:
(add-to-list 'load-path "~/evil")
(require 'evil)
(evil-mode 1)发布于 2022-10-22 14:57:34
对我来说,问题是我没有意识到RET表示返回。为了清楚起见,请执行以下操作:
M-xpackage-install (按“返回”或"enter")evil (再次按“返回”或“输入”)起作用了。
https://stackoverflow.com/questions/71877781
复制相似问题