我是emacs的新手,现在大约一个半星期。我在mac, high sierra, 10.13.2上。
我正在使用use-package
.
我一直在尝试使用此链接helm-projectile
等基本配置进行设置,但我无法开始工作(我是以前的 vim 用户,想要一个类似 ctrl-p 的设置)。helm-projectile-find-file
这是我在运行时遇到的错误的屏幕截图helm-projectile-find-file
要清楚:
projectile-find-file
工作正常helm-projectile-find-file-in-known-projects
工作正常helm-projectile-switch-project
工作正常- 等等
只是 helm-projectile-find-file
那行不通。我很困惑为什么,我整个周末都在努力解决这个问题,所以任何帮助都将不胜感激。
这是我在.emacs配置文件中使用的相关设置
;; Projectile
(use-package projectile
:ensure t
:defer t
:config
(projectile-global-mode))
;; Helm
(use-package helm
:ensure t
:config
(helm-mode 1)
(setq helm-autoresize-mode t)
(global-set-key (kbd "C-x C-f") #'helm-find-files)
(global-set-key (kbd "M-x") #'helm-M-x)
(define-key helm-map (kbd "<tab>") 'helm-execute-persistent-action) ; rebind tab to do persistent action
(define-key helm-map (kbd "C-i") 'helm-execute-persistent-action) ; make TAB works in terminal
(define-key helm-map (kbd "C-z") 'helm-select-action) ; list actions using C-z
)
;; Helm Projectile
(use-package helm-projectile
:bind (("C-S-P" . helm-projectile-switch-project))
:map evil-normal-state-map
("C-p" . helm-projectile-find-file))
:ensure t
)
这是我的完整.emacs配置文件的链接。