Category: Emacs

21 posts

sdcv-mode.el update: now keeps a sdcv process running

sdcv-mode.el is an extension that allows you to look up word in Emacs. It is a front end to the console version of StarDict(sdcv). It has rarely been updated since I wrote it in Dec 2006. Of course sdcv-mode.el isn't perfect, but I think it just served well at its position. It is very handy to be [...]

给 YASnippet 的文档做了 css 主题

YASnippet 的文档是用 reStructuredText 生成的,感觉 reStructuredText 虽然很强大,但是自带的那个 HTML Writer 的可定制性实在是不太好,而且文档不好找,许多地方都只能根据固定好的输出结构来做 css ,而 Muse 在这方面要好弄一些,主要是 Muse 比较简单,许多地方可以方便的控制了。下面是一个截图: 还不错吧!可以点过去看看。 :) 其实是借用了 Drupal 6 的默认主题里的不少东西。

[ANN] YASnippet 0.5.0 Released

I know the problem from the very beginning: if you delete (use something like C-w or C-k) the region of the snippet you just expanded, things will get weird. I thought people will never want to delete the snippet after expanded it; and if he really want to, he can use undo, which works perfectly. [...]

[ANN]YASnippet 0.1.1 Released

YASnippet -- Yet Another Snippet extension for Emacs. 最近有些忙,代码差不多了,文档会在有时间的时候陆续更新。先看 Screencast。yasnippet.el 是在总结了 smart-snippet.el 的反馈之后完全重写的。部分 feature 列表: 配置简单(一句话: (require 'yasnippet-bundle) ) 在输入的时候同步更新 field (Textmate) 可以在文件中定义 snippet (msf-abbrev) 支持将文件中定义的 snippets “编译”成单独的 .el [...]

Emacs 23 prebuild deb package

Emacs 的 unicode branch 前日 merge 到 trunk 中了,brep 编译了一个 for Windows 的版本供下载。Emfox 做了 amd-64 的预编译 deb 包,我用它那里的源码和元信息编译了 i386 平台的 deb 包,放在这里。Enjoy! :)

用 Emacs 上 IRC

Emacs 有许多扩展可以用来上 IRC ,如果你的 Emacs 版本够新的话,已经自带了 ERC 。只要 M-x erc 就可以了。 唉!可惜这边的时间和美国那边的时间相差好多,有时候想上去问问题,却少见几个人醒着的。 :(

Running RSpec in Emacs

RSpec is a Behaviour Driven Development framework for Ruby. It's output format can be customized. However, the default format works well in Emacs's compilation-mode. Type M-x compile and input spec file_name_spec.rb. The result will be prompted at a new buffer. Some useful information are [...]

smart-snippet update: skip field with the same name

Consider the following snippet for TeX: \begin{$${env}} $. \end{$${env}} You may want to fill env and go directly to $.. But pressing TAB will bring you to line 3, and then line 2 -- where you want to go. Here the problem is when you've filled a field, what's your next action by pressing a TAB? If [...]

org-mode 中打开链接

最近在准备在下次 Linux World 2007 @ ZJU 讲座的 Presentation ,其中有一个 video ,想在 org-mode 里面直接打开。org-mode 处理链接的能力还是比较强的,按 C-c C-o 打开链接 如果是文件内部链接的话,它会直接跳到那里。 如果是普通文本文件,会直接用 Emacs 新开一个 buffer 打开。 其他各种类型的文件都会用合适的程序打开。例如我在 Debian 里装了 xloadimage ,它会用这个程序来打开图片。 不过当我打开 video 的时候它选择了 gmplayer ,而不是 mplayer 。我自己不太喜欢 [...]

Emacs Timeline

我曾经在我的 wiki 上帖过一个 Emacs 的 Timeline ,最近收集资料的时候想找新版本的 Timeline ,正好找到了画这个 Timeline 的作者:Jamie Zawinski ,他画的 Timeline 已经有更新了,把最新发布的 Emacs 22 也包含在了里面。我把他转帖过来了:

smart-snippet.el update: properly undoing in a snippet

A user of smart-snippet reported a bug to me today. The behavior of undoing in a snippet is confusing. In fact I've noticed this bug a long time ago, even before I write smart-snippet.el -- it's a bug if snippet.el . But I never try to fix it, I thought it might be impossible or at least difficult [...]

Emacs 生存指南

Emacs 生存指南pluskid2007 年 11 月 作为一个历史悠久的程序,网上有不少相关资料,总结一下,大致可以分为一下几类: 电子书:例如 O’ Reilly的《Learning GNU Emacs》以及 Sams系列的《Sams Teach Yourself Emacs in 24 Hours》等,从头至尾系统地讲解了 Emacs 的方方面面,非常详细。 文档:Emacs 自带了有交叉索引的文档,其中还包括 Elisp 介绍以及详细文档等,在 Emacs 里查阅非常方便。 Blog 文章:多是介绍一些特性或者技巧之类的,比较零散。 [...]

smart-snippet.el update: escape char supported

I updated smart-snippet.el today. There're main two changes: The code is merged with snippet.el. Now you can use \ to escape and protect a character that might else be recognized as a snippet identifier.

Emacs Multi-tty Reloaded

前不久得到一个消息,听说 Emacs Multi-tty 的代码 merge 到 CVS Head 里面去了,异常兴奋。可是看了 newsmth 上各位网友的试用及讨论之后,发现是 merge 到 trunk 里面,这里原来是 22 的 CVS ,现在 22 正式 Release 了,这里进行继续开发。换句话说,并没有和 unicode-branch 融合。而且版本号有些奇怪,现在 unicode-branch 里面的版本号是 23.0.0.2 这样的,而现在的 CVS Head 的版本号是 23.0.50.1 。 不管怎么说,multi-tty 的特性虽然很诱人(其实 XEmacs [...]

nXhtml: tame your rhtml files

I personally use Emacs as an IDE to develop rails project. Equipped with emacs-rails, it becomes a powerful IDE for rails developing. However, you may noticed, it doesn't have full support for rhtml files. You can use html-mode to edit rhtml files, it is already good enough. But is is of course not [...]

linum.el: Yet another package for Emacs to display line number

Emacs 自带的行号显示方式仅仅在 mode-line 上显示当前行号,有时候显得颇不方便。其他流行的和不流行的编辑器通常都有在左边显示行号的功能。Emacs 当然也有许多扩展来实现这个功能,比如 setnu.el(再配上 setnu+.el) 以及 wb-line-number.el 等。今天在这里又发现一个 linum.el ,它的主页在这里。 其实总的来说,这几个扩展都不是特别理想,比如 setnu 总有各种各样的小问题,虽然不太印象使用,但是让人感觉不舒服。wb-line-number 看上去要好一点,不过却要求你把滚动条关掉。而这里的 linum 几乎和 setnu [...]

我以前的笔记

以前用 Emacs Muse 写了不少的笔记,自己觉得有些东西还是挺有用的,至少我自己也经常回去查阅,有些东西不记下来过一段时间还真忘记了。只是一直没有合适的地方挂出来给大家分享。虽然现在已经很少再添加新的东西了,不过既然有这个机会,我还是挂出来,免得白白写了些东西,只有我自己看到了。 :) 我把它放在了这里: http://pluskid.lifegoo.com/wiki/index.html

Emacs 版衫设计

最近 newsmth 的 Emacs 版在征集版衫设计。我不知道这么远是不是能在那里订版衫。不过还是跟风做了一个。 图像处理工具用得也不熟。抽取 simple.el 中的代码帖了一大段到背面,我想也许会看起来 Cool 一点。 如果太远了订不到的话,有机会不妨在 freecity 也做一个 Emacs 的版衫,这边也有很多人用 Emacs 的。

Emacs 22.1 Released!

经过一而再再而三的跳票,RMS 终于让 Emacs 22.1 Release 出来了。http://www.gnu.org/software/emacs/ 上也更新了最新的 Stable 版本的信息: Current Stable Release Latest stable release: 22.1 (June 2, 2007) Emacs version 22 includes GTK+ toolkit support, enhanced mouse support, a new keyboard macro system, improved Unicode support, and [...]

smart-snippet and smart-skeleton

随着 Ruby on Rails 火起来,TextMate 也突然变得很火。没有 Mac 机器,不能体验到 TextMate 是什么感觉,不过在网络上看到 TextMate 的视频演示,其中有一个功能确实是很不错的。就是那个 snippet 。定义一些模板,然后在合适的时候展开,以减少输入重复的内容,这个是每个稍微强一点的编辑器都有的功能了,同一个“域”,在多处展开也是非常常见的功能。但是通常的编辑器都是对每个会放到多个地方的“域”进行提问(例如,弹出一个对话框),TextMate [...]