用来记笔记的三个 Emacs 模式
Emacs 笔记

> 
> 借助这些 Emacs 模式轻松记录信息。
> 
> 
> 


![](/data/attachment/album/201904/29/102405qsfg3yv3tfvbbgtc.jpg)


不管你从事哪种工作，你都无可避免地需要记笔记。而且可能还不是一点点。现在这年头，大家都开始以数字的形式来记笔记了。


开源软件爱好者有多种途径来以电子的方式记下他们的创意、想法和研究过程。你可以使用 [网页工具](https://opensource.com/alternatives/evernote)，可以使用 [桌面应用](https://opensource.com/life/16/9/4-desktop-note-taking-applications)，或者你也可以 [使用命令行工具](https://opensource.com/article/18/3/command-line-note-taking-applications)。


如果你使用 [Emacs](https://www.gnu.org/software/emacs/)（伪装成文本编辑器的强力操作系统)，有多个<ruby> 模式 <rt>  mode </rt></ruby>可以帮你有效地记录笔记。我们这里列举三个例子。


### Deft


![](/data/attachment/album/201904/29/102422wcugyhvpykc44ts4.png)


在少数情况下，我只能使用 Mac时，有一个工具是我不能缺少的：[nvALT](http://brettterpstra.com/projects/nvalt/) 笔记应用。[Deft 模式](https://jblevins.org/projects/deft/) 为 Emacs 带来了 nvALT 式的体验。


Deft 将你的笔记以文本文件的形式存储在电脑中的某个文件夹中。当你进入 Deft 模式，你会看到一系列的笔记及其摘要。这些摘要其实就是文本文件的第一行。若第一行是 Markdown、LaTeX，甚至 Emacs Org 模式的格式的话，Deft 会忽略掉这些格式而只显示文本内容。


要打开笔记，只需要向下滚动到该笔记的位置然后按下回车即可。然而 Deft 不仅仅只是这样。根据 Deft 开发者 Jason Blevins 的说法，它的*主要操作是搜索和过滤*。Deft 的实现方式简单而有效。输入关键字然后 Deft 会只显示标题中包含关键字的笔记。这在你要从大量笔记中找到某条笔记时非常有用。


### Org 模式


![](/data/attachment/album/201904/29/102423cuzxdmtxiuyy2tjy.png)


如果本文没有包含 [Org 模式](https://orgmode.org/) 的话，那么我可能会被人所诟病。为什么？它可以说是 Emacs 中最灵活、使用最广泛的记录笔记的方式了。以正确的方式使用它，Org 模式可以极大地增强记笔记的能力。


Org 模式的主要优势在于它组织笔记的方式。在 Org 模式中，一个笔记文件会被组织成一个巨大的大纲。每个章节就是大纲里的一个节点，你可以对它进行展开和折叠。这些章节又可以有子章节，这些子章节也可以展开和折叠。这不仅使你一次只关注于某个章节，而且可以让你浏览整个大纲。


你可以在多个章节之间 [进行互联](https://orgmode.org/org.html#Hyperlinks)，无需通过剪切和复制就能快速移动章节，以及 [附加文件](https://orgmode.org/org.html#Attachments) 到笔记中。Org 模式支持带格式的字符和表格。如果你需要转换笔记到其他格式，Org 模式也有大量的[导出选项](https://orgmode.org/org.html#Exporting)。


### Howm


![](/data/attachment/album/201904/29/102425lkm14gtxjk5vk8te.png)


当我使用 Emacs 已经成为一种习惯时，[howm](https://howm.osdn.jp/) 马上就成为我严重依赖的模式之一了。虽然我特别喜欢使用 Org 模式，但 howm 依然占有一席之地。


Howm 就好像是一个小型维基。你可以创建笔记和任务列表，还能在它们之间创建链接。通过输入或点击某个链接，你可以在笔记之间跳转。如果你需要，还可以使用关键字为笔记添加标签。不仅如此，你可以对笔记进行搜索、排序和合并。


Howm 不是最漂亮的 Emacs 模式，它的用户体验也不是最佳。它需要你花一点时间来适应它，而一旦你适应了它，记录和查找笔记就是轻而易举的事情了。




---


via: <https://opensource.com/article/18/7/emacs-modes-note-taking>


作者：[Scott Nesbitt](https://opensource.com/users/scottnesbitt) 选题：[lujun9972](https://github.com/lujun9972) 译者：[lujun9972](https://github.com/lujun9972) 校对：[wxy](https://github.com/wxy)


本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译，[Linux中国](https://linux.cn/) 荣誉推出


OK
No matter what line of work you're in, it's inevitable you have to take a few notes. Often, more than a few. If you're like many people in this day and age, you take your notes digitally.

Open source enthusiasts have a variety of options for jotting down their ideas, thoughts, and research in electronic format. You might use a [web-based tool](https://opensource.com/alternatives/evernote). You might go for a [desktop application](https://opensource.com/life/16/9/4-desktop-note-taking-applications). Or, you might [turn to the command line](https://opensource.com/article/18/3/command-line-note-taking-applications).

If you use [Emacs](https://www.gnu.org/software/emacs/), that wonderful operating system disguised as a text editor, there are modes that can help you take notes more efficiently. Let's look at three of them.

## Deft

![Deft Deft](https://opensource.com/sites/default/files/uploads/deft.png)

On those rare occasions I'm forced to use a Mac, there's one tool I can't do without: the [nvALT](http://brettterpstra.com/projects/nvalt/) note-taking application. [Deft mode](https://jblevins.org/projects/deft/) brings the nvALT experience to Emacs.

Deft stores your notes as text files in a single folder on your computer. When you enter Deft mode, it displays a list of your notes along with a short summary. The summary is taken from the first line of the text file. If you add, say, Markdown, LaTeX, or even Emacs Org mode formatting to the first line, Deft ignores the formatting and displays only the text.

To open a note, just scroll down to it and press Enter. Deft does a bit more, though. According to Deft's developer, Jason Blevins, its *primary operation is searching and filtering*. Deft does that simply but efficiently. Type a keyword and Deft displays only the notes that have that keyword in their title. That's useful if you have a lot of notes and want to find one quickly.

## Org mode

![Org mode Org mode](https://opensource.com/sites/default/files/uploads/orgmode.png)

There would be a couple or three people who would have jumped all over me if I didn't include [Org mode](https://orgmode.org/) in this article. Why? It's arguably the most flexible and the most widely used Emacs mode for taking notes. Used in the right way, Org mode can supercharge your note-taking.

Org mode's main strength is how it organizes your notes. In Org mode, a note file is set up as a large outline. Each section is a node in the outline, which you can expand and collapse. Those sections can have subsections, which also expand and collapse. That not only lets you focus on one section at a time, but it also gives you an at-a-glance overview of the information you have.

You can [link](https://orgmode.org/org.html#Hyperlinks) between sections of your notes, quickly move sections without cutting and pasting, and [attach files](https://orgmode.org/org.html#Attachments) to your notes. Org mode supports character formatting and tables. If you need to convert your notes to something else, Org mode has a number of [export options](https://orgmode.org/org.html#Exporting).

## Howm

![howm howm](https://opensource.com/sites/default/files/uploads/howm.png)

When I started using Emacs regularly, [howm](https://howm.osdn.jp/) quickly became one of the modes I leaned heavily on. And even though I'm deep into using Org mode, I still have a soft spot for howm.

Howm acts like a small wiki. You can create notes and task lists and link between them. By typing or clicking a link, you can jump between notes. If you need to, you can also tag your notes with a keyword. On top of that, you can search, sort, and concatenate your notes.

Howm isn't the prettiest Emacs mode, and it doesn't have the best UX. It takes a bit of getting used to. Once you do, taking and maneuvering around notes is a breeze.

Do you have a favorite Emacs mode for taking notes? Feel free to share it by leaving a comment.

## Comments are closed.