emacs org-mode插入excel实现的表格内容

本文介绍如何使用org-mode将Excel中的表格内容快速转换为适用于笔记和任务管理的格式。通过简单的步骤,如选中Excel表格并使用C-c|命令,可以轻松地将表格导入到org-mode中。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

org-mode插入excel文本里的表格内容

excel用于写表格,还是很常用的。excel的表格内容,默认是用Tab键隔开。

1   1   1   1
2   2   2   2
3   3   3   3
4   4   4   4
5   5   5   5

org-mode适合写GTD/notes。
excel表格内容直接用于org-mode,其实有命令。操作如下:
1. 选中所有行;
2. c-c | ;对应命令的描述如下:

C-c | runs the command org-table-create-or-convert-from-region (found
in org-mode-map), which is an interactive autoloaded compiled Lisp
function in ‘org-table.el’.

It is bound to C-c |.

(org-table-create-or-convert-from-region ARG)

Convert region to table, or create an empty table. If there is an
active region, convert it to a table, using the function
‘org-table-convert-region’. See the documentation of that function to
learn how the prefix argument is interpreted to determine the field
separator. If there is no such region, create an empty table with
‘org-table-create’.

实现效果如下:

| 1 | 1 | 1 | 1 |
| 2 | 2 | 2 | 2 |
| 3 | 3 | 3 | 3 |
| 4 | 4 | 4 | 4 |
| 5 | 5 | 5 | 5 |

补充

  1. c-c | 命令,不支持excel存在合并单元格的情况。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值