1. treemacs 中的 projectile-compile 定位错误
这里已有 DataStructure
项目,在 src
下又有 BinaryTree
和 List
两个项目
现在在 DataStructure
目录下有 Makefile
文件,在 BinaryTree
和 List
两个目录下也有 Makefile
文件
- 在
DataStructure
直属文件中运行projectile-compile
,会定位到DataStructure
目录,这没有问题 - 在
BinaryTree
或者List
下运行projectile-compile
,还是会定位到DataStructure
目录,这里不对! - 在两个子项目中已经添加
.projectile
文件 - 截图里没有
.projectile
不要在意
2. compilation-mode 中无法显示 unicode 字符
这是我的相关配置代码
(require 'ansi-color)
(defun my/ansi-colorize-buffer ()
(let ((buffer-read-only nil))
(ansi-color-apply-on-region (point-min) (point-max))))
(add-hook 'compilation-filter-hook 'my/ansi-colorize-buffer)
重启后运行 compile 输入
yarn serve`
期待的运行效果是