注 :这是我在写 moz-controller 时的记录,因为是写给自己看的,所以思维比较跳跃,文字也没有雕琢,只是希望能为 Emacs Lisp 爱好者提供一些参考价值。
Tag Archives: Elisp
Emacs: org-html-export returns org-html-fontify-code: Wrong number of arguments…
A few days ago, for no reason (for fun, maybe), I cloned the Github mirror of Emacs and built a latest Emacs. I also removed my old Emacs (I was silly, I blame Melbourne’s weather :D). Many subtle problems occurred since then, for example, executing org-html-export-as-html
often causes the following error:
org-html-fontify-code: Wrong number of arguments: #[(_beg _end) "À " [font-lock-fontify-buffer] 1], 0
emacs-moz-controller: View Page Source
I’ve added a new functionality to emacs-moz-controller: with some simple configurations, you can press C-c m u
in Emacs to view the source of the current Firefox page.
Emacs: org-html-export 时出现 org-html-fontify-code: Wrong number of arguments…
前几天心血来潮,克隆了 Emacs 的 Github 镜像,自己编译了一个最新的 Emacs。而且非常无脑地把原来的 Emacs 删掉了。自此,各种小问题层出不穷,比如 org-html-export-as-html
时,经常会出现:
org-html-fontify-code: Wrong number of arguments: #[(_beg _end) "À " [font-lock-fontify-buffer] 1], 0
emacs-moz-controller: 查看网页源代码
给 emacs-moz-controller 新添加了个功能: 简单配置一下 Firefox 之后, 在 Emacs 中按 C-c m u
来查看当前页面的源代码.
moz-controller: Control Firefox from Emacs
Note: This blog is the README of moz-controller, which is the first Emacs plugin I’ve ever written. Github: https://github.com/RenWenshan/emacs-moz-controller.
moz-controller: 在 Emacs 中控制 Firefox
注: 本文是 moz-controller 的中文 README (commit 7e3d05f). moz-controller 是我写的第一个 Emacs 插件, github 地址: https://github.com/RenWenshan/emacs-moz-controller.
Control Firefox to Scroll/Refresh/Close from Emacs
It’s very common for me to program while read documents in a web browser, and I think it’s annoying to switch between the browser and the text editor constantly.
Here I have a few Elisp functions defined, which allow me to control Firefox to scroll, close tabs and so on.
在 Emacs 中控制 Firefox 翻页、刷新、关闭页面
Emacs: scroll PDF in other buffer
I wrote two simple elisp commands to make the experience of taking notes while reading PDF in Emacs better.