Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

删除多余空格个 #54

Open
hanzejl opened this issue May 27, 2017 · 3 comments
Open

删除多余空格个 #54

hanzejl opened this issue May 27, 2017 · 3 comments

Comments

@hanzejl
Copy link

hanzejl commented May 27, 2017

由于 emacs 启用了 auto-fill-mode,在 80 列的时候会自动换行,使用这个进行导出 html 的时候会多出空格,网上的解决方案如下:https://coldnew.github.io/a1ed40e3/ ,但是我把这段代码加入到相应区域,发现不生效,请问这有更好的解决方案吗?

@frapples
Copy link

但是我把这段代码加入到相应区域

相应区域是哪个区域?你把代码写到.emacs.d文件里面是没用的。

hexo-renderer-org的配置文件里面可以定制一个配置选项,export_cfg ,它的默认值是:
(progn (package-initialize)(require 'org) (require 'org-clock) (require 'ox))

默认的这段代码会加载elpa安装的org-mode。相信你应该知道怎么配置了。

@hanzejl
Copy link
Author

hanzejl commented May 28, 2017

已经改好了,谢谢。我有个小疑惑,lib 目录下面 renderer.js 下面 exec_args.splice(1,0,'--execute', config.org.export_cfg) 这段代码是不是应该写成 exec_args.splice(2, 0,'--execute', config.org.export_cfg) 但是两个写法都可以正常的运行。

@frapples
Copy link

你说的很对,当初我看那段代码觉得应该也是这样。。。

能运行,应该是因为emacs能很好处理这种看起来不太规范的命令行参数吧。。。。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants