Emacs

2025

Emacs Garbage Collection

gcmh(aka “Garbage Collection Magic Hack”) is useful and easy to handle garbage collection for GNU Emacs.

Integrate Harper With Emacs

Harper is a grammar checker designed to run anywhere there is text (so really, anywhere).

DIY Modus Themes

Each Modus theme specifies a color palette that declares named color values and semantic color mappings.

Emacs中去光亮所有符号

之前的文章介绍了如何在Emacs中高亮符号,一般运行 M-x unhighlight-regexp 来选择其中一个符号去高亮。

Better capture template for blog post

An org capture template to create post file in blog directory, and insert some front matters.

Emacs中记笔记

Denote is a simple note-taking tool for Emacs.

Emacs中高亮关键字

Use font-lock to highlight keywords.

Emacs中高亮符号

Use hi-lock to highlight symbol.

Org Mode Archiving

Archiving in agenda view.

Change buffer font in Emacs

From Emacs 23.1, you can change the font of current buffer, using buffer-face-set.

llama.cpp使用

前面的一篇文章介绍了Ollama运行DeepSeek-R1,实际上Ollama的后端使用的是llama.cpp。

Ollama运行DeepSeek-R1

Ollama 是一个用于构建大型语言模型应用的工具,它提供了一个简洁易用的命令行界面和服务器,让你能够轻松下载、运行和管理各种开源LLM。

Org导出HTML时生成稳定ID

使用Org导出成HTML的时候,文档内部的标题和图片等元素都会生成格式如 orgxxxxxxx 的ID,这个ID从字面上并不能看出来对应那个元素,并且每次文档重新导出时,这个ID都会改变。

Emacs中使用大型语言模型

Emacs有不少LLM的客户端,这里我们选择gptel,在 init.el 中添加以下代码:

2024

Generating sitemap in Emacs

使用Emacs导出博客时,可以导出Sitemap文件,可以很方便的生成最近的文章信息或者归档列表。