开发工具 请问有好的 Emacs 缩进提示线 插件 没?

qinfanpeng · 2013年03月08日 · 最后由 muyinliu 回复于 2016年01月31日 · 6445 次阅读

请问有好的 emacs 缩进提示线 插件 没?

我也用的 antonj 这个。设置了下字体,让它看起来像虚线,不过字体大小不一样是用不了的,需要自己调整 bitmap。默认没开启,实在看不齐了再手动打开。

(highlight-indentation-face ((t (:foreground ,zenburn-bg+1 :stipple ,(list 9 1 (string 15 0)))))) (highlight-indentation-current-column-face ((t (:foreground ,zenburn-bg+3 :stipple ,(list 9 1 (string 15 0))))))

#2 楼 @doitian (add-to-list 'load-path "~/emacs.d/lib") (require 'highlight-indentation-mode) (require 'highlight-indentation-current-column-mode)

我把 highlight-indentation.el 文件放在.emacs.d/lib 下的,上面是我的配置,报错:File error: Cannot open load file, highlight-indentation-mode 麻烦帮我看看,先谢了

#3 楼 @qinfanpeng (require 'highlight-indentation)

5 楼 已删除

#4 楼 @doitian 不报错了,但是没得效果阿,搞笑

手动:

M-x highlight-indentation-mode M-x highlight-indentation-current-column-mode

或者在需要开启的 mode hook 里添加,

(add-hook 'python-mode-hook 'highlight-indentatoin-mode) (add-hook 'python-mode-hook 'highlight-indentatoin-current-column-mode)

#7 楼 @doitian , 非常感激,我用你的第一种方法解决了,只是虚线效果还是没实现

建议使用 ident-guide,支持自定义缩进提示线所使用的字符

需要 登录 后方可回复, 如果你还没有账号请 注册新账号