现在 projectile 切换项目的时候,必须要打开某个文件。 我切换到某个项目,只是准备开始工作,不一定知道要立马编辑某个具体的文件。每次要打开一个文件buffer感觉有点奇怪。而且有时候是想打开emacs,然后立马切换到某个项目,再使用projectile的搜索功能,并不想编辑某个文件。
awesome-tab 配合 helm 就可以做到
1 个赞
发现这个配置好像可以,一会再研究下。https://projectile.readthedocs.io/en/latest/configuration/#projectile-dired
#projectile-switch-project-action
(setq projectile-switch-project-action 'projectile-dired)
3 个赞
原来可以这样,我是一个project一个layout先保存好
我的配置:
;; default to open ‘dired’ at the root of the project, which bind to "."
(counsel-projectile-modify-action
'counsel-projectile-switch-project-action
'((add ("." dired
"open ‘dired’ at the root of the project")
1)))
1 个赞