<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Emacs on Ken Huang</title>
    <link>https://blog.kenhuang.io/zh-cn/tags/emacs/</link>
    <description>Recent content in Emacs on Ken Huang</description>
    <generator>Hugo</generator>
    <language>zh-cn</language>
    <managingEditor>kenhuang512@gmail.com (Ken Huang)</managingEditor>
    <webMaster>kenhuang512@gmail.com (Ken Huang)</webMaster>
    <lastBuildDate>Sun, 19 Apr 2026 12:44:14 +0800</lastBuildDate>
    <atom:link href="https://blog.kenhuang.io/zh-cn/tags/emacs/rss.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>smart-input-source 配合 RIME 进行完美地中英文输入</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2022-09-11-emacs-smart-input-source-rime/</link>
      <pubDate>Sun, 11 Sep 2022 15:50:29 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2022-09-11-emacs-smart-input-source-rime/</guid>
      <description>&lt;p&gt;&#xA;Emacs 中文输入有不少方案，既可以用外置的输入法（比如 Rime, sogou 等）进行输入，还可以用内置的输入法（比如 pyim ）利用 Elisp 完成中文输入。作为中文用户，我们很难避免需要同时输入中英文（比如到目前为止这篇博文我就打了不少英文字符了），那么选用一个能流畅地进行中英文打字的输入方案能够极大地提升使用体验。本文我们就来一起看下如何在 Linux + Emacs 的系统中，利用 RIME 及 Emacs 包配置一个完美的中英文输入方案。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs Beancount ：记账时从其他的账户文件补全账户</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2022-09-10-emacs-beancount-account-files/</link>
      <pubDate>Sat, 10 Sep 2022 11:13:38 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2022-09-10-emacs-beancount-account-files/</guid>
      <description>&lt;figure&gt;&#xA;&lt;img src=&#34;https://blog.kenhuang.io/img/2022-09-10-beancount-mode-comple-accounts-from-files.jpg&#34; alt=&#34;从单独的 accounts.bean 补全账户&#34; title=&#34;单击以放大图片&#34;/&gt;&#xA;&lt;figcaption&gt;&#xA;从单独的 accounts.bean 补全账户&#xA;&lt;/figcaption&gt;&#xA;&lt;/figure&gt;&#xA;&lt;p&gt;&#xA;如果你用 Emacs + Beancount 来记账，那你应该有用 &lt;a href=&#34;https://github.com/beancount/beancount-mode&#34;&gt;beancount-mode&lt;/a&gt; 这个包。它可以帮助我们在记账的时候从当前 buffer 中提取出已定义的账户，当我们下达 &lt;code class=&#34;verbatim&#34;&gt;M-x beancount-insert-account&lt;/code&gt; 命令的时候，它会弹出 minibuffer 来让我们模糊选择使用哪个账户，从而提高记账效率。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs 常用 debug 手段</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2022-07-17-emacs-elisp-debug/</link>
      <pubDate>Sun, 17 Jul 2022 09:57:31 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2022-07-17-emacs-elisp-debug/</guid>
      <description>&lt;p&gt;&#xA;折腾 Emacs 难免会遇到问题。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;论坛里经常可以看到有同学遇到各种配置问题的，但却不知从何入手排查。这里我给大家简单地介绍一些常用的方法，当你下次遇到问题的时候可以先照着排查一下，说不定就能自己解决了。&lt;/p&gt;</description>
    </item>
    <item>
      <title>i3wm 工作区如何快速创建 Emacs 窗口</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2021-08-29-i3wm-workspace-emacs-frame/</link>
      <pubDate>Sun, 29 Aug 2021 13:58:21 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2021-08-29-i3wm-workspace-emacs-frame/</guid>
      <description>&lt;p&gt;&#xA;平铺窗口管理器为了提升显示空间的利用率，一般都有工作区（ workspace ）的功能，比如 &lt;a href=&#34;https://i3wm.org/docs/userguide.html&#34;&gt;i3wm&lt;/a&gt; 和 &lt;a href=&#34;http://www.qtile.org/&#34;&gt;qtile&lt;/a&gt; 默认定义了10个工作区。工作区可以隔离不同的应用，让我们专注当前的工作区，避免无关应用的干扰。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Emacs 中使用 ppcompile 进行远程编译</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2020-04-11-use-ppcompile-to-remote-compile-in-emacs/</link>
      <pubDate>Sat, 11 Apr 2020 22:17:00 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2020-04-11-use-ppcompile-to-remote-compile-in-emacs/</guid>
      <description>&lt;p&gt;&#xA;不同于 Python 之类的项目， C/C++ 的项目需要有专门的编译环境，一般国内公司都会搭建特定的编译环境机器，把一些私有的库等依赖放在上面。而这些编译环境的工具链一般都比较老旧，有的编译环境可能还无法访问外网，甚至也没有提供代理间接访问外网。因此想要在这样的环境中使用 Emacs 开发代码着实不是一件容易的事。&lt;/p&gt;</description>
    </item>
    <item>
      <title>记一个 Emacs 26 Keyboard Macro 输入字符重复的 Bug</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2019-02-03-emacs-kmacro-characters-repeated-bug/</link>
      <pubDate>Sun, 03 Feb 2019 18:05:00 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2019-02-03-emacs-kmacro-characters-repeated-bug/</guid>
      <description>&lt;p&gt;&#xA;工作中不时地会使用 Emacs keyboard macro 来解决重复性的编辑任务，&#xA;但有时录制了再重放却出现输入的字符被重复了，导致出现非预期的结果。&#xA;一般此时为了赶进度，只好忍了，放弃使用 keyboard macro ，改用其他方式编辑代码。&lt;/p&gt;</description>
    </item>
    <item>
      <title>在 Emacs 中使用 LSP 开发 C/C&#43;&#43; 工程</title>
      <link>https://blog.kenhuang.io/zh-cn/blog/2018-12-22-c-cpp-devel-with-lsp-in-emacs/</link>
      <pubDate>Sat, 22 Dec 2018 20:24:00 +0800</pubDate><author>kenhuang512@gmail.com (Ken Huang)</author>
      <guid>https://blog.kenhuang.io/zh-cn/blog/2018-12-22-c-cpp-devel-with-lsp-in-emacs/</guid>
      <description>&lt;p&gt;&#xA;写代码的时候，如果能够基于当前的上下文提示补全，不仅能提高写代码的效率，还能提升编程体验，有种行云流水的快感。&lt;/p&gt;&#xA;&lt;p&gt;&#xA;Emacs 中之前我用 &lt;a href=&#34;https://www.gnu.org/software/global/&#34;&gt;GNU Global (gtags)&lt;/a&gt; 等静态的工具来辅助写代码，最大的问题是无法根据上下文补全，体验不好。现在有了 LSP 协议之后， Emacs 中现在也能实现这个功能了，体验相当不错。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
