- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我对emacs相当陌生。事实上,我正在学习编辑器并尝试设置一些可以复制“转到项目内的文件”功能的东西,这些功能来自 Code::Blocks 或 notepad++ 的某些插件。
'projectile' 满足了这个需求,我通过 MELPA 安装了它。软件包安装正确,因为我可以使用 M-x projectile-global-mode
启动它和 C-c p
命令被识别。
但是,如果我将其放入我的 .emacs
文件,Emacs 以错误开始:
Symbol's function definition is void: projectile-global-mode
.emacs
的内容文件如下:
(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.
)
(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.
)
(global-whitespace-mode 1)
(global-linum-mode 1)
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/") t)
(projectile-global-mode 1)
(require 'projectile)
首先,我只得到另一个错误:
'File error: Cannot open load file, projectile'
最佳答案
默认情况下,Emacs 初始化包 之后 评价 init.el
.因此,在标准设置中,软件包尚不可用,而 init
被评估。
使用(add-hook 'after-init-hook #'projectile-global-mode)
仅在包初始化后启用 Projectile,或在 init.el
开头显式初始化包使用以下代码:
(require 'package)
(setq package-enable-at-startup nil) ; To avoid initializing twice
(package-initialize)
关于Emacs:无法自动启动通过 MELPA 安装的弹丸,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24610945/
我对emacs相当陌生。事实上,我正在学习编辑器并尝试设置一些可以复制“转到项目内的文件”功能的东西,这些功能来自 Code::Blocks 或 notepad++ 的某些插件。 'projectil
我目前正在尝试按照 https://github.com/ensime/ensime-emacs 中的说明为 emacs 24.3.1 安装 ENSIME快速启动下;我已经添加了 (requi
我正在尝试通过 melpa 在我的 init 文件中添加包。它正在工作,但今天它停止了。为了调试,我从“emacs -q”开始,并在我的暂存缓冲区中输入以下内容: (require 'package)
Very Similar Question 我目前正在尝试按照 https://github.com/rust-lang/rust-mode 中的说明为 emacs 24.5.1 安装 rust-mo
我曾经有过Melpa在我的 elisp 存储库列表中;在意识到它的版本号肯定必须与其他存储库的版本号(例如 Marmalade ,普通的 Elpa)完全不同之后,我最近删除了它......因此当使用
我正在运行通过自制程序安装的 emacs 24.5。由于某些奇怪的原因,我的 emacs 卡在正在联系主机:melpa.org:80 我什至尝试了全新安装 emacs(也删除了 .emacs.d 文件
我是一名优秀的程序员,十分优秀!