小编Rod*_*ite的帖子

如何从组织模式表生成源代码?

我正在尝试找出一种方法将我的 i3wm 配置文件移动到组织模式文件。我有一个包含键绑定以及它们应该执行的命令的表,我想从中生成适当的源代码。

例子:

| Keybinding            | Command              | Action                   |
|-----------------------+----------------------+--------------------------|
| {{{mod}}} + Return    | i3-sensible-terminal | Opens a new terminal     |
| {{{mod}}} + Shift + q | kill                 | Kills the focused window |
Run Code Online (Sandbox Code Playgroud)

应该生成

bindsym {{{mod}}}+Return exec --no-startup-id i3-sensible-terminal ;; Opens a new Terminal
bindsym {{{mod}}}+Shift+q exec --no-startup-id kill ;; Kills the focused window
Run Code Online (Sandbox Code Playgroud)

这样的事可能吗?

emacs org-mode

1
推荐指数
1
解决办法
166
查看次数

标签 统计

emacs ×1

org-mode ×1