M-x Melt

An Emacser


  • Home

  • Archives

  • Tags

A shortcut key in Emacs is occupied by Fixct5

Posted on 2025-08-30 17:59 | Post modified 2025-09-02 22:30

之前有一次在使用 citar-org-insert 时,在选择了 bibtex entry 项目后,按 RET 却总是无法将已经选中的 bibtex entry 项插入到 .org 中,却在候选项中增加了重复的 bibtex entry 项。 当时捣鼓了一会,也不知道是什么原因,后来发现在 doom 中使用 ivy 的 bibtex-completion 时,在已经确定好 citekey 候选项后,将选好的 citekey 插入到用的快捷键是 C-M-j 。

Read more »

A Debug Workflow in Emacs

Posted on 2025-08-24 22:05 | Post modified 2025-08-30 18:23

在使用 Doom Emacs 时,在使用某些命令或者学习某些函数的用法时,经常会想要对某个函数进行单步调试的方法。

Read more »

Test Regexp in Emacs

Posted on 2025-07-12 19:42 | Post modified 2025-07-19 08:26

Table of Contents

  • 1. 可视化创建正则表达式: Re-builder
  • 2. 自然语言思维创建正则表达式: rx
Read more »

Merge roam directories

Posted on 2025-07-07 21:00 | Post modified 2025-07-19 08:26 | In Emacs

Table of Contents

  • 1. Manifest
  • 2. Debug
  • 3. Find files with command
  • 4. Recur and test
  • 5. Why
Read more »

Tunning org-latex-preview-impatient in Emacs

Posted on 2025-06-22 21:22 | Post modified 2025-08-30 18:23

Table of Contents

  • 1. Installation
  • 2. Org-latex-preview-impatient preview
    • 2.1. Inline Math
    • 2.2. Display Math
  • 3. Kelly Criterion
  • 4. Bayes’ theorem
  • 5. Shannon–Hartley theorem
  • 6. Maxwell’s equations
  • 7. Curvature
  • 8. ROI, Return on Investment
  • 9. Limit definition of the constant e
  • 10. Least squares
  • 11. EOQ

1. Installation

Declare package install in packages.el, in Doom1 for instance:

(package! org-latex-impatient
  :recipe (:host github
           :repo "yangsheng6810/org-latex-impatient"
           :branch "master"))
Read more »

OPDS and Deploy OPDS on Calibre

Posted on 2025-06-07 13:31 | Post modified 2025-07-05 11:21

Table of Contents

  • 1. What: OPDS
  • 2. Why: OPDS
  • 3. Why: deploy OPDS
  • 4. How: deploy OPDS on Calibre
  • 5. Visit OPDS service
  • 6. Visit OPDS service on Emacs

1. What: OPDS

OPDS is an acronym that stands for Open Publication Distribution System. It enables a streamlined way of distributing and accessing digital publications, including eBooks, magazines, and audiobooks. By utilizing OPDS, users can browse through catalogs of available content and download items directly to their devices. This protocol enhances the user experience by providing a structured format for accessing various publications.

2. Why: OPDS

In the digital age, accessing and managing eBooks has become an essential skill for readers and content creators alike.

3. Why: deploy OPDS

  1. Effortless Content Management
  2. Streamlined Sharing
  3. User-Friendly Interface
  4. Cross-Platform Access
  5. Enhanced Discoverability

4. How: deploy OPDS on Calibre

Read more »

Update Config Files with Dotdrop

Posted on 2025-06-02 12:41 | Post modified 2025-07-05 11:21

Table of Contents

  • 1. Why
  • 2. Dotdrop
  • 3. 安装
  • 4. Dotdrop 使用
  • 5. 使用 git 仓库管理 Dotdrop 文件

1. Why

为什么要使用 dotdrop ,我的理解是「复现」,也就是重现。这个概念出现在很多场景:

  1. 当可以重现某个 bug 的时候,通常也找到了解决问题的方法,当然这个重现隐含的是更低成本的重现;
  2. 成熟产品的稳定性,也就是提升设计内可控场景的重现(至 100%)而尽量降低不可预见和不可清晰业务的重现。

重现 0% 和重现 100% 是我们追求的目标:科学研究的论文的准确度,也依赖于重现;对于任何事物的精准描述,依托于更加精准的场景。也许未来,我们会使用更好的工具来实现更快更精准的「重现」,dotdrop 在中间可以充当一个过渡的桥梁。

2. Dotdrop

Dotdrop1 是什么? As mainpage of Dotdrop says: “Save your dotfiles once, deploy them everywhere”. 其中隐含的就是同步系统配置文件。

3. 安装

可以使用 pip 来安装 dotdrop 。

4. Dotdrop 使用

例如对于本地的 ~/.gitconfig 文件,dotdrop 导入后 key 为 f_gitconfig 。一般常用操作如下:

  1. 导入并保存文件到 dotdrop 中 dotdrop import ~/.gitconfig
  2. 找到目前 dotdrop 中保存文件和本地有不同内容的文件 dotdrop compare -L
  3. 比较特定文件 dotdrop 和本地使用的不同内容 dotdrop compare -C ~/.gitconfig
  4. 更新保存本地单个文件到 dotdrop 中 dotdrop update -f -k f_gitconfig
  5. 更新保存本地所有文件到 dotdrop 中 dotdrop update -f
  6. 安装或更新 dotdrop 保存文件到本地 dotdrop install f_gitconfig
  7. 安装或更新 dotdrop 所有文件到本地 dotdrop install -f

5. 使用 git 仓库管理 Dotdrop 文件

最好的方式还是使用 git 来对集中的 Dotdrop 文件进行版本管理,可以更加精细的了解到什么时候什么理由做的更改,在遇到问题时可更易回溯。

Footnotes:

Read more »

Set Syncthing Excluding A Repo's git Directory

Posted on 2025-05-31 21:58 | Post modified 2025-06-07 14:31

使用 Syncthing 时在不同主机端间同步文件,如果在同步完成前就对端操作,会生成临时的冲突文件 .sync-conflict* 。

Read more »

Practice Ediff in Emacs

Posted on 2025-05-18 09:46 | Post modified 2025-06-07 14:30

Table of Contents

  • 1. Working with Aidermacs Code Actions

1. Working with Aidermacs Code Actions

When using Aidermacs1 code actions, the system generates AI-powered modifications to your source code after responding to your prompt. These changes are displayed as a patch in Emacs’ built-in ediff format2.

Read more »

Use MPC in Emacs

Posted on 2025-05-17 16:44 | Post modified 2025-08-24 22:15

Table of Contents

  • 1. MPD
  • 2. MPDel
Read more »
1 2 … 8
Melt

Melt

Questions create realities.

77 posts
5 categories
20 tags
RSS
GitHub
© 2021 - 2025 Melt
Powered by Jekyll
Theme - NexT.Muse