Emacs 的（更多）胜利
Emacs
![](/data/attachment/album/201907/02/002550x2ol48004hx6e0od.jpg)


我天天用 Emacs，但我却从意识到。但是每当我用 Emacs 时，它都给我带来了很多乐趣。



> 
> 如果你是个职业作家……Emacs 与其它的编辑器的相比就如皓日与群星一样。不仅更大、更亮，它轻而易举就让其他所有的东西都消失了。
> 
> 
> 


我用 [Emacs](https://en.wikipedia.org/wiki/Emacs) 已有二十多年了。我用它来写几乎所有的东西（我用 [IntelliJ](https://en.wikipedia.org/wiki/IntelliJ_IDEA) 编辑 Scala 和 Java ）。看邮件的话我是能在 Emacs 里看就在里面看。


尽管我用 Emacs 已有数十年，我在新年前后才意识到，在过去十几年里，我对 Emacs 的使用几乎没有什么变化。当然，新的编辑模式出现了，我就会选一两个插件，几年前我确实是用了 [Helm](https://emacs-helm.github.io/helm/)，但大多数时候，它只是完成了我需要的所有繁重工作，日复一日，没有抱怨，也没有妨碍我。一方面，这证明了它有多好。另一方面，这是一个邀请，让我深入挖掘，看看我错过了什么。


于此同时，我也决定从以下几方面改进我的工作方式：


* **更好的议程管理** 我在工作中负责几个项目，这些项目有定期和临时的会议；有些我是我主持的，有些我只要参加就可以。


我意识到我对参加会议变得有些敷衍。往会议室里一坐很简单，但实际上我是在阅读电子邮件或处理其他事情。(我强烈反对在会议中“禁止携带笔记本电脑”的这条规定，但这是另一个话题。)


敷衍地去参加会议有几个问题。首先，这是对主持会议的人和其他参会者的不尊重。实际上这是不应该这么做的充分理由，但我还有意识到另一个问题：它掩盖了会议的成本。


如果你在开会，但同时回复了一封电子邮件，也许修复了一个 bug，那么这个会议就没什么成本（或没那么多）。如果会议成本低廉，那么会议数量将会更多。


我想要更少、更短的会议。我不想掩盖它们的成本，我想让开会变得很有价值，除非绝对必要，否则就干脆不要开。


有时，开会是绝对有必要的。而且我认为一个简短的会有时候能够很快的解决问题。但是，如果我一天要开十个短会的话，那我觉得还是不要假装取得了什么效果吧。


我决定在我参加的所有的会上做笔记。我并不是说一定要做会议记录，但是我肯定会花上几分钟。这会让我把注意力集中在开会上，而忽略其他事。
* **更好的时间管理** 无论是工作的或私人的，我有很多要做和想做的事。我一直在问题列表中跟踪其中的一些，一些在保存的电子邮件线索中（Emacs 和 [Gmail](https://en.wikipedia.org/wiki/Gmail) 中，用于一些稍微不同的提醒），还有一些在日历、手机上各种各样的“待办事项列表”和小纸片上。可能还有其他地方。


我决定把它们放在一起。不是说我认为放到一个一致的地方就更好，而是我想完成两件事：首先，把它们都集中在一个地方，我能够更好更全面地了解我在哪里投入了更多的精力；其次，我想养成一个记录、跟踪并保存它们的习惯（习惯指“固定或规律的倾向或做法，尤指难以放弃的倾向或做法”）。
* **更好的问责制** 如果你在某些科学或工程领域工作，你就会养成记笔记的习惯。唉，我没有。但我决定这么做。


我对法律上鼓励使用装订页面或用永久记号笔涂抹并不感兴趣。我感兴趣的是养成做记录的习惯。我的目标是有一个地方记下想法和设计草图等。如果我突然有了灵感，或者我想到了一个不在测试套件中的边缘情况，我希望我的直觉是把它写在我的日志中，而不是草草写在一张小纸片上，或者自己觉得自己会记住它。


这些决心让我很快或多或少指向了 [Org](https://en.wikipedia.org/wiki/Org-mode) 模式。Org 模式有一个庞大的、活跃的、忠诚的用户社区。我以前也用过它（顺带一提，我都[写过](https://www.balisage.net/Proceedings/vol17/html/Walsh01/BalisageVol17-Walsh01.html)关于它的文章，在几年前)，我花了很长的一段时间（将 [MarkLogic 集成](https://github.com/ndw/ob-ml-marklogic/)到其中。（这在过去的一两个星期里得到了回报！）


但我从没正经用过 Org 模式。


我现在正在用它。我用了几分钟，我把所有要做的事情都记录下来，我还记了日记。我不确定我争论或列表它的所有功能能有多大价值，你可以通过网页快速地搜索找到很多。


如果你用 Emacs，那你也应该用 Org 模式。如果没用过 Emacs，我相信你不会是第一个因 Org 模式而使用 Emacs 的人。Org 模式可以做很多。它需要一点时间来学习方法和快捷键，但我认为这是值得的。(如果你的口袋中有一台 [iOS](https://en.wikipedia.org/wiki/IOS) 设备，我推荐你在路上使用 [beorg](https://beorgapp.com/) 来记录。)


当然，我想出了如何[将 XML 从其中提取出来](https://github.com/ndw/org-to-xml)（“working out” 确实是“用 elisp 来编程”的一种有趣的魔法）然后，如何将它转换回我的博客用的标记（当然，在 Emacs 中按下一个按钮就可以做到）。这是用 Org 模式写的第一篇帖子。这也不会是最后一次。


附注：生日快乐，[小博客](https://so.nwalsh.com/2017/03/01/helloWorld)。




---


via: <https://so.nwalsh.com/2019/03/01/emacs>


作者：[Norman Walsh](https://so.nwalsh.com) 选题：[lujun9972](https://github.com/lujun9972) 译者：[oneforalone](https://github.com/oneforalone) 校对：[wxy](https://github.com/wxy)


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


OK
# Emacs for (even more of) the win

I use Emacs every day. I rarely notice it. But when I do, it usually brings me joy.

If you are a professional writer…Emacs outshines all other editing software in approximately the same way that the noonday sun does the stars. It is not just bigger and brighter; it simply makes everything else vanish.


I’ve been using [Emacs](https://en.wikipedia.org/wiki/Emacs) for well over twenty years. I use it for
writing *almost* anything and everything (I edit Scala and Java in
[IntelliJ](https://en.wikipedia.org/wiki/IntelliJ_IDEA)). I read my email in it. If it can be done in Emacs, that’s
where I prefer to do it.

Although I’ve used Emacs for literally decades, I realized around the
new year that very little about my use of Emacs had changed in the
past decade or more. New editing modes had come along, of course, I’d
picked up a package or two, and I did adopt [Helm](https://emacs-helm.github.io/helm/) a few years ago, but
mostly it just did all the heavy lifting that I required of it, day in
and day out without complaining or getting in my way. On the one hand,
that’s a testament to how good it is. On the other hand, that’s an
invitation to dig in and see what I’ve missed.

At about the same time, I resolved to improve several aspects of my work life:

-
**Better meeting management.**I’m lead on a couple of projects at work and those projects have meetings, both regularly scheduled and ad hoc; some of them I run, some of them, I only attend.I realized I’d become sloppy about my participation in meetings. It’s all too easy sit in a room where there’s a meeting going on but actually read email and work on other items. (I strongly oppose the “no laptops” rule in meetings, but that’s a topic for another day.)

There are a couple of problems with sloppy participation. First, it’s disrespectful to the person who convened the meeting and the other participants. That’s actually sufficient reason not to do it, but I think there’s another problem: it disguises the cost of meetings.

If you’re in a meeting but also answering your email and maybe fixing a bug, then that meeting didn’t cost anything (or as much). If meetings are cheap, then there will be more of them.

I want fewer, shorter meetings. I don’t want to disguise their cost, I want them to be perceived as damned expensive and to be avoided unless absolutely necessary.

Sometimes, they are absolutely necessary. And I appreciate that a quick meeting can sometimes resolve an issue quickly. But if I have ten short meetings a day, let’s not pretend that I’m getting anything else productive accomplished.

I resolved to take notes at all the meetings I attend. I’m not offering to take minutes, necessarily, but I

*am*taking minutes of a sort. It keeps me focused on the meeting and not catching up on other things. -
**Better time management.**There are lots and lots of things that I need or want to do, both professionally and personally. I’ve historically kept track off some of them in issue lists, some in saved email threads (in Emacs and[Gmail](https://en.wikipedia.org/wiki/Gmail), for slightly different types of reminders), in my calendar, on “todo lists” of various sorts on my phone, and on little scraps of paper. And probably other places as well.I resolved to keep them all in one place. Not because I think there’s one place that’s uniformly best or better, but because I hope to accomplish two things. First, by having them all in one place, I hope to be able to develop a better and more holistic view of where I’m putting my energies. Second, because I want to develop a habitn. “A settled or regular tendency or practice, especially one that is hard to give up.” of recording, tracking, and preserving them.

-
**Better accountability.**If you work in certain science or engineering disciplines, you will have developed the habit of keeping a[lab notebook](https://en.wikipedia.org/wiki/Lab_notebook). Alas, I did not. But I resolved to do so.I’m not interested in the legal aspects that encourage bound pages or scribing only in permanent marker. What I’m interested in is developing the habit of keeping a record. My goal is to have a place to jot down ideas and design sketches and the like. If I have sudden inspiration or if I think of an edge case that isn’t in the test suite, I want my instinct to be to write it in my journal instead of scribbling it on a scrap of paper or promising myself that I’ll remember it.


This confluence of resolutions led me quickly and more-or-less
directly to [Org](https://en.wikipedia.org/wiki/Org-mode). There is a *large*, active, and loyal community of
Org users. I’ve played with it in the past (I even [wrote about it](https://www.balisage.net/Proceedings/vol17/html/Walsh01/BalisageVol17-Walsh01.html), at
least in passing, a couple of years ago) and I tinkered long enough to
[integrate MarkLogic](https://github.com/ndw/ob-ml-marklogic/) into it. (Boy has that paid off in the last week
or two!)

But I never *used it*.

I am now using it. I take minutes in it, I record all of my todo items in it, and I keep a journal in it. I’m not sure there’s much value in me attempting to wax eloquent about it or enumerate all its features, you’ll find plenty of either with a quick web search.

If you use Emacs, you should be using Org. If you don’t use Emacs, I’m
confident you wouldn’t be the first person who started because of Org.
It does *a lot*. It takes a little time to learn your way around and
remember the shortcuts, but I think it’s worth it. (And if you carry
an [iOS](https://en.wikipedia.org/wiki/IOS) device in your pocket,
I recommend [beorg](https://beorgapp.com/) for recording items
while you’re on the go.)

Naturally, I worked out how to [get XML out of it](https://github.com/ndw/org-to-xml)“Worked out” sure is a funny way to spell “hacked together in elisp.”. And from there, how
to turn it back into the markup my weblog expects (and do so at the
push of a button in Emacs, of course). So this is the first posting
written in Org. It won’t be the last.

P.S. Happy birthday [little weblog](https://so.nwalsh.com/2017/03/01/helloWorld).