Merge remote-tracking branch 'LCTT/master'

This commit is contained in:
Xingyu.Wang 2018-11-30 21:58:52 +08:00
commit 63866f6be1
8 changed files with 607 additions and 613 deletions

View File

@ -1,75 +0,0 @@
[#]: translator: (oneforalone)
Emacs #1: Ditching a bunch of stuff and moving to Emacs and org-mode
======
Ill admit it. After over a decade of vim, Im hooked on [Emacs][1].
Ive long had this frustration over how to organize things. Ive followed approaches like [GTD][2] and [ZTD][3], but things like email or large files are really hard to organize.
I had been using Asana for tasks, Evernote for notes, Thunderbird for email, a combination of ikiwiki and some other items for a personal knowledge base, and various files in an archive directory on my PC. When my new job added Slack to the mix, that was finally the last straw.
A lot of todo-management tools integrate with email — poorly. When you want to do something like “remind me to reply to this in a week”, a lot of times thats impossible because the tool doesnt store the email in a fashion you can easily reply to. And that problem is even worse with Slack.
It was right around then that I stumbled onto [Carsten Dominiks Google Talk on org-mode][4]. Carsten was the author of org-mode, and although the talk is 10 years old, it is still highly relevant.
Id stumbled across [org-mode][5] before, but each time I didnt really dig in because I had the reaction of “an outliner? But I need a todo list.” Turns out I was missing out. org-mode is all that.
### Just what IS Emacs? And org-mode?
Emacs grew up as a text editor. It still is, and that heritage is definitely present throughout. But to say Emacs is an editor would be rather unfair.
Emacs is something more like a platform or a toolkit. Not only do you have source code to it, but the very configuration is a program, and there are hooks all over the place. Its as if it was super easy to write a Firefox plugin. A couple lines, and boom, behavior changed.
org-mode is very similar. Yes, its an outliner, but thats not really what it is. Its an information organization platform. Its website says “Your life in plain text: Org mode is for keeping notes, maintaining TODO lists, planning projects, and authoring documents with a fast and effective plain-text system.”
### Capturing
If youve ever read productivity guides based on GTD, one of the things they stress is effortless capture of items. The idea is that when something pops into your head, get it down into a trusted system quickly so you can get on with what you were doing. org-mode has a capture system for just this. I can press `C-c c` from anywhere in Emacs, and up pops a spot to type my note. But, critically, automatically embedded in that note is a link back to what I was doing when I pressed `C-c c`. If I was editing a file, itll have a link back to that file and the line I was on. If I was viewing an email, itll link back to that email (by Message-Id, no less, so it finds it in any folder). Same for participating in a chat, or even viewing another org-mode entry.
So I can make a note that will remind me in a week to reply to a certain email, and when I click the link in that note, itll bring up the email in my mail reader — even if I subsequently archived it out of my inbox.
YES, this is what I was looking for!
### The tool suite
Once youre using org-mode, pretty soon you want to integrate everything with it. There are browser plugins for capturing things from the web. Multiple Emacs mail or news readers integrate with it. ERC (IRC client) does as well. So I found myself switching from Thunderbird and mairix+mutt (for the mail archives) to mu4e, and from xchat+slack to ERC.
And wouldnt you know it, I liked each of those Emacs-based tools **better** than the standalone they replaced.
A small side tidbit: Im using OfflineIMAP again! I even used it with GNUS way back when.
### One Emacs process to rule them
I used to use Emacs extensively, way back. Back then, Emacs was a “large” program. (Now my battery status applet literally uses more RAM than Emacs). There was this problem of startup time back then, so there was a way to connect to a running Emacs process.
I like to spawn programs with Mod-p (an xmonad shortcut to a dzen menubar, but Alt-F2 in more traditional DEs would do the trick). Its convenient to not run several emacsen with this setup, so you dont run into issues with trying to capture to a file thats open in another one. The solution is very simple: I created a script, named it `em`, and put it on my path. All it does is this:
`#!/bin/bash exec emacsclient -c -a "" "$@"`
It creates a new emacs process if one doesnt already exist; otherwise, it uses what youve got. A bonus here: parameters such as `-nw` work just fine, so it really acts just as if youd typed `emacs` at the shell prompt. Its a suitable setting for `EDITOR`.
### Up next…
Ill be talking about my use of, and showing off configurations for:
* org-mode, including syncing between computers, capturing, agenda and todos, files, linking, keywords and tags, various exporting (slideshows), etc.
* mu4e for email, including multiple accounts, bbdb integration
* ERC for IRC and IM
--------------------------------------------------------------------------------
via: http://changelog.complete.org/archives/9861-emacs-1-ditching-a-bunch-of-stuff-and-moving-to-emacs-and-org-mode
作者:[John Goerzen][a]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://changelog.complete.org/archives/author/jgoerzen
[1]:https://www.gnu.org/software/emacs/
[2]:https://gettingthingsdone.com/
[3]:https://zenhabits.net/zen-to-done-the-simple-productivity-e-book/
[4]:https://www.youtube.com/watch?v=oJTwQvgfgMM
[5]:https://orgmode.org/

View File

@ -1,3 +1,5 @@
yongshouzhang translating
HTTP request routing and validation with gorilla/mux
======

View File

@ -1,3 +1,5 @@
[translating by dianbanjiu]
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )

View File

@ -0,0 +1,148 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: subject: (How to test your network with PerfSONAR)
[#]: via: (https://opensource.com/article/18/11/how-test-your-network-perfsonar)
[#]: author: (Jessica Repka https://opensource.com/users/jrepka)
[#]: url: ( )
How to test your network with PerfSONAR
======
Set up a single-node configuration to measure your network performance.
![](https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/command_line_prompt.png?itok=wbGiJ_yg)
[PerfSONAR][1] is a network measurement toolkit collection for testing and sharing data on end-to-end network perfomance.
The overall benefit of using network measurement tools like PerfSONAR is they can find issues before they become a large elephant in the room that nobody wants to talk about. Specifically, with the right answers from the right tools, patching can become more stringent, network traffic can be shaped to speed connections across the board, and the network infrastructure design can be improved.
PerfSONAR is licensed under the open source Apache 2.0 license, which makes it more affordable than most tools that do this type of analysis, a key advantage given constrained network infrastructure budgets.
### PerfSONAR versions
Several versions of PerfSONAR are available:
* **Perfsonar-tools:** The command line client version meant for on-demand testing.
* **Perfsonar-testpoint:** Adds automated testing and central management testing to PerfSONAR-tools. It has an archiving feature, but the archive must be set to an external node.
* **Perfsonar-core:** Includes everything in the testpoint software, but with local rather than external archiving.
* **Perfsonar-toolkit:** The core software; it includes a web UI with systemwide security settings.
* **Perfsonar-centralmanagement:** A completely separate version of PerfSONAR that uses mass grids of nodes to display results. It also has a feature to push out task templates to every node that is sending measurements back to the central host.
This tutorial will use **PerfSonar-toolkit** ; the tools used in this software include [iPerf, iPerf3][2], and [OWAMP][3].
### Requirements
* **Recommended operating system:** CentOS/RHEL7
* **ISO:** [Downloading][4] the full installation ISO is the fastest way to get the software up and running. While there is a [Debian version][5], it is much harder and more complicated to use.
* **Minimum hardware requirements:** 2 cores and 4GB RAM
* **Recommended hardware:** 200GB HDD, 4 cores, 6GB of RAM
### Installing and configuring PerfSONAR
The installation is a quick CentOS install where you pick your timezone and configuration for the hard drive and user. I suggest using hard drive autoconfiguration, as you only need to choose "Install Toolkit" and follow the prompts from there.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image1_welcome.png)
Select your language.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image4_language.png)
Select a destination.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image3_destination.png)
After base installation, you see the Linux login screen.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image5a_linuxlogin.png)
After you log in, you are prompted to create a user ID and password to log into PerfSONAR's web frontend—make sure to remember your login information.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image5_createuser.png)
You're also asked to disable SSH access for root and create a new user for sudo; just follow the steps to create the new user.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image17_sudouser.png)
You can use a provisioning service to automatically provide an IP address and hostname. Otherwise, you will have to set the hostname (optional) and configure the IP address.
### Log into the web frontend
Once the base configuration is complete, you can log into the web frontend via **<http://ipaddress/toolkit>** or **<http://hostname/toolkit>**. The web frontend will appear with the name or IP address of the device you just set up, the list of tools used, a test result area, host information, global node directory, and on-demand testing.
These options appear on the right-hand side of the web page.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image13_ondemandtesting.png)
![](https://opensource.com/sites/default/files/uploads/perfsonar_image1_frontend.png)
For a single configuration mode, you will need another node to test with. To get one, click on the global node [Lookup Service Directory][6] link, which will bring you to a list of available nodes.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image20_lookupservicemap1.png)
Pick an external node from the pScheduler Server list on the left. (I picked ESnet's Atlanta testing server.)
![](https://opensource.com/sites/default/files/uploads/perfsonar_image10_selectnode.png)
Configure the node by clicking the Log In button and entering the user ID and password you created during base configuration.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image8_login.png)
Next, choose Configuration.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image14_chooseconfig.png)
This takes you to the configuration page, where you can add tests to other nodes by clicking Test, then clicking +Test.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image6_config.png)
After you click +Test, you'll see a pop-up window with some drop-down options. For this tutorial, I used One-Way Active Measurement Protocol (OWAMP) testing for one-way latency against the ESnet Atlanta node that is IPv4.
#### Side bar
* The OWAMP measures unidirectional characteristics such as one-way delay and one-way loss. High-precision measurement of these one-way IP performance metrics became possible with wider availability of good time sources (such as GPS and CDMA). OWAMP enables the interoperability of these measurements.
* IPv4 is a fourth version of the Internet Protocol, which today is the main protocol to most of the internet. IPv4 protocol defines the rules for the operation of computer networks on the packet-exchange principle. This is a low-level protocol that is responsible for the connection between the nodes of the network on the basis of IP Addresses.
* The IPv4 node is a perfsonar testing node that only does network testing using the IPv4 protocols. The perfsonar testing node you connect to is the same application that is built in this documentation.
The drop-down should use the server's main interface. Confirm that the test is enabled (the Test Status switch will be green) and click the OK button at the bottom of the window.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image9_addtest.png)
Once you have added the test information, click the Save button at the bottom of the page.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image18_savetestinfo.png)
You will see information about all of the scheduled tests and the hosts they are testing. You can add more hosts to the test by clicking the Settings icon in the Actions column.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image16_scheduledtests.png)
The testing intervals are automatically set according to the recommended settings. If the test frequency increases, the tests will still run OK, but your hard drive may fill up with data more quickly.
Once the test finishes, click View Public Dashboard to see the data that's returned. Note that it may take anywhere from five minutes to several hours to access the first sets of data.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image19_viewpublicdash.png)
The public dashboard shows a high-level summary dataset. If you want more information, click Details.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image2_details.png)
You'll see a larger graph and have the option to expand the graph over a year as data is collected.
![](https://opensource.com/sites/default/files/uploads/perfsonar_image7_expandedgraph.png)
PerfSONAR is now up, running, and testing the network. You can also test with two nodes inside your network (or one internal network node and one external node).
### What can you learn about your network?
In the time I've been using PerfSONAR, I've already uncovered the following issues:
* Asymmetrical throughput
* Fiber outages
* Speed on circuit not meeting contractual agreement
* Internal network slowdowns due to misconfigurations
* Incorrect routes
Have you used PerfSONAR or a similar tool? What benefits have you seen?
--------------------------------------------------------------------------------
via: https://opensource.com/article/18/11/how-test-your-network-perfsonar
作者:[Jessica Repka][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/jrepka
[b]: https://github.com/lujun9972
[1]: https://www.perfsonar.net/
[2]: https://iperf.fr/
[3]: http://software.internet2.edu/owamp/
[4]: http://downloads.perfsonar.net/toolkit/pS-Toolkit-4.1.3-CentOS7-FullInstall-x86_64-2018Oct24.iso
[5]: http://docs.perfsonar.net/install_options.html#
[6]: http://stats.es.net/ServicesDirectory/

View File

@ -0,0 +1,70 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: subject: (Standalone web applications with GNOME Web)
[#]: via: (https://fedoramagazine.org/standalone-web-applications-gnome-web/)
[#]: author: (Ryan Lerch https://fedoramagazine.org/introducing-flatpak/)
[#]: url: ( )
Standalone web applications with GNOME Web
======
![](https://fedoramagazine.org/wp-content/uploads/2018/11/gnome-web-816x345.jpg)
Do you regularly use a single-page web application, but miss some of the benefits of a full-fledged desktop application? The GNOME Web browser, simply named Web (aka Epiphany) has an awesome feature that allows you to install a web application. By doing this, the web application is then presented in the applications menus, GNOME shell search, and is a separate item when switching windows. This short tutorial walks you through the steps of installing a web application with GNOME Web.
### Install GNOME Web
GNOME Web is not included in the default Fedora install. To install, search in the Software application for web, and install.
![][1]
Alternatively, use the following command in the terminal:
```
sudo dnf install epiphany
```
### Install as Web Application
Next, launch GNOME Web, and browse to the web application you wish to install. Connect to the application using the browser, and choose Install site as Web Application from the menu:
![][2]
GNOME Web next presents a dialog to edit the name of the application. Either leave it as the default (the URL) or change to something more descriptive:
![][3]
Finally, press **Create** to install your new web application. After creating the web application, close GNOME Web.
### Using the new web application
Launch the web application as you would with any typical desktop application. Search for it in the GNOME Shell Overview:
![][4]
Additionally, the web application will appear as a separate application in the alt-tab application switcher:
![][5]
One additional feature this adds is that all web notifications from the installed web application are presented as regular GNOME notifications.
--------------------------------------------------------------------------------
via: https://fedoramagazine.org/standalone-web-applications-gnome-web/
作者:[Ryan Lerch][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://fedoramagazine.org/introducing-flatpak/
[b]: https://github.com/lujun9972
[1]: https://fedoramagazine.org/wp-content/uploads/2018/11/gnome-web-in-gnome-software.png
[2]: https://fedoramagazine.org/wp-content/uploads/2018/11/freenode-page-in-gnome-web.png
[3]: https://fedoramagazine.org/wp-content/uploads/2018/11/edit-web-application-in-GNOME-web.png
[4]: https://fedoramagazine.org/wp-content/uploads/2018/11/web-application-in-overview.jpg
[5]: https://fedoramagazine.org/wp-content/uploads/2018/11/web-app-in-app-switcher.jpg

View File

@ -0,0 +1,86 @@
[#]: collector: (lujun9972)
[#]: translator: ( )
[#]: reviewer: ( )
[#]: publisher: ( )
[#]: subject: (SMPlayer in Linux: Features, Download and Installation)
[#]: via: (https://itsfoss.com/smplayer/)
[#]: author: (Aquil Roshan;Abhishek Prakash https://itsfoss.com/author/aquil/)
[#]: url: ( )
SMPlayer in Linux: Features, Download and Installation
======
One of the [things youll notice after a fresh install of Ubuntu][1], or pretty much any other Linux distribution, is this message when you try to play certain video files.
![][2]
Default media player is not good with codecs
It means that the [codecs needed][3] to play the media are not installed on the system. Now, due to some copyright issues, some Linux based operating systems cannot pre-pack the codecs in the installation media. But they do allow you to download and install the codecs with just a click, or you could just install a media player which has all the multimedia codecs, to begin with. Checkout [SMPlayer][4].
### Meet SMPlayer: A Better Media Player for Linux
SMPlayer is a free and open-source media player built on the powerful [MPlayer][5] media engine. SMPlayer is capable of playing avi, mp4, mkv, mpeg, mov, divx, h.264 and pretty much any other major media format out there. And the cherry on top is, it can play [YouTube][6] videos too, ad-free.
![SMPlayer default interface][7]
SMPlayer is a complete media solution. It is cross-platform, so available on all the operating systems. If you have a dual boot, you can install it on your Windows and Linux OS to get a uniform experience on both the systems. It also supports convertible laptops with touch support.
You can play YouTube on SMPlayer too. I know its impractical to copy-paste the video URL and play on an external player every time. But SMPlayer is particularly useful when you are watching comparatively lengthy videos. SMPlayer plays YouTube videos in a very good quality and I felt the videos play out much better than the in-browser videos. And by playing the lengthier videos on SMPlayer, you can stay clear of the mid-roll ads that pop up on the lengthier videos.
If youre watching a movie which doesnt have subtitles, You can directly download the subtitles through SMPlayer. It comes with [opensubtitles.org][8] integration. So none of that, open the browser, search for subtitles, download the appropriate ones, unzip, place them in the video folder and connect the subtitles to the movie. No Sir! SMPlayer at your service.
![Automatic subtitle download in SMPlayer][9]
SMPlayer is available in more than 30 languages and it is highly customizable. It has both applications theming and a ton of icon sets in it.
If you feel that the default interface of SMPlayer doesnt look good, in a few clicks you can make it look like this:
![SMPlayer skin change][10]
SMPlayer comes with a lot of tools and features for the power users. It has an equalizer, video speed controls, aspect ratio and zoom controls, video filters, screenshot ripping and lot more.
All in all, I really liked SMPlayer. It has a lot to offer in a small and lightweight package. I think it is a must have video player on your Linux PC. Along with playing all the media formats easily it also provides a ton of power controls.
### Installing SMPlayer on Linux
SMPlayer should be available in the software center of all major Linux distributions. You can search for it and install it from there itself.
On Ubuntu/ Linux Mint/ Elementary OS, you can also install SMPlayer by running the following command in the terminal
```
sudo apt install smplayer
```
Alternatively, you can download the package for Fedora, Arch Linux, OpenSUSE and Debian [here.][11]
### Wrapping Up
There are a good number of full-fledged media players out there like the VLC media player. SMPlayer is one of the best ones with a full functionality and great add-on benefits. Ill consider it one of the [must-have applications for Linux][12].
Do give it a try and share your thoughts with us in the comments section below.
--------------------------------------------------------------------------------
via: https://itsfoss.com/smplayer/
作者:[Aquil Roshan;Abhishek Prakash][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://itsfoss.com/author/aquil/
[b]: https://github.com/lujun9972
[1]: https://itsfoss.com/things-to-do-after-installing-ubuntu-18-04/
[2]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2018/11/SMPlayer-warning.jpg?fit=800%2C450&ssl=1
[3]: https://packages.ubuntu.com/trusty/ubuntu-restricted-extras
[4]: https://www.smplayer.info/
[5]: http://www.mplayerhq.hu/design7/news.html
[6]: https://www.youtube.com/
[7]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2018/11/SMPlayer-coco.jpg?fit=800%2C450&ssl=1
[8]: https://www.opensubtitles.org/en/search
[9]: https://i0.wp.com/itsfoss.com/wp-content/uploads/2018/11/SMPlayer-icon-packs.jpg?fit=800%2C450&ssl=1
[10]: https://i2.wp.com/itsfoss.com/wp-content/uploads/2018/11/SMPlayer-theme.jpg?fit=800%2C450&ssl=1
[11]: https://software.opensuse.org/download.html?project=home%3Asmplayerdev&package=smplayer
[12]: https://itsfoss.com/essential-linux-applications/

View File

@ -0,0 +1,75 @@
Emacs 系列 1抛掉一切投入 Emacs 和 org-mode 的怀抱
======
我必须承认,在使用了几十年的 vim 后, 我被 [Emacs][1] 吸引了。
长期以来,我一直对如何组织安排事情感到沮丧。我也有用过 [GTD][2] 和 [ZTD][3] 之类的方法,但是像邮件或是大型文件这样的事务真的很难来组织安排。
我一直在用 Asana 处理任务,用 Evernote 做笔记,用 Thunderbird 处理邮件,把 ikiwiki 和其他的一些项目组合作为个人知识库,而且还在电脑的归档了各种文件。当需要将 Slack 加入到归档中时,我终于忍无可忍了。
许多 todo 的管理工具与电子邮件集成的很差。当你想做“提醒我在一周内回复这个邮件”之类的事时,很多时候是不可能的,因为这个工具不能以一种能够轻松回复的方式存储邮件。而这个问题在 Slack 上更为严重。
就在那时,我偶然发现了 [Carsten Dominik 在 Google Talk 上关于org-mode 的话题][4]。Carsten 是 org-mode 的作者,即便是这个话题已经有 10 年了,但它仍然很具有参考价值。
我之前有用过 [org-mode][5],但是每次我都没有真正的深入研究它,
因为我当时的反应是“一个大纲?但我需要的是待办事项列表”。我就这么错过了它。但实际上 org-mode 就是我所需要的。
### 什么是 Emacs 什么是 org-mode
Emacs 最初是一个文本编辑器,现在依然如此,而且这种传统无疑贯穿始终。但是说 Emacs 是个编辑器是很不公平的。
Emacs 更像一个平台或是工具包。你不仅可以用它来编辑源代码,而且配置 Emacs 本身就是也编程,里面有很多模式。就像编写一个 Firefox 插件一样简单,只要几行代码,然后,模式里的操作就改变了。
org-mode 也一样。确实,它是一个处理大纲的,但它真正所包含的不止如此。它是一个信息组织平台。它的网站上写着,“你可以用纯文本来记录你的生活:你可以用 org 模式来记笔记,处理待办事项,规划项目和使用快速有效的纯文本系统编写文档。
### 捕获
如果你读过基于GTD的生产力指南那么他们强调的一件事就是毫不费力地获取项目。这个想法是当某件事突然出现在你的脑海里时把它迅速输入一个受信任的系统这样你就可以继续做你正在做的事情。org-mode 有一个专门的捕获系统。我可以在 Emacs 的任何地方按下 `C-c c` 键,它就会空出一个位置来记录我的笔记。最关键的是,自动嵌入到注释中的链接可以链接到我按下 `C-c c` 键时正在编辑的那一行。如果我正在浏览邮件,它就会给我一个链接回那封邮件的链接(通过邮件的 ID这样它就可以在任何一个文件夹中找到邮件。聊天时也一样甚至是当你在另一个 org-mode 中也可也这样。
这样我就可以做一个笔记,它会提醒我在一周内回复某封邮件,当我点击这个笔记中的链接时,它会在我的邮件阅读器中弹出这封邮件 -- 即使我随后将它从收件箱中存档。
没错,这正是我要找的!
### 工具套件
一旦你开始使用 org-mode很快你就会想将所有的事情都集成到里面。有可以从网络上捕捉东西的浏览器插件也有多个 Emacs 邮件或新闻阅读器与之集成ERCIRC client 也不错。所以我将自己从 Thunderbird 和 mairix + mutt (用于邮件归档)换到了 mu4e从 xchat + slack 换到了 ERC
你可能不明白,我喜欢这些基于 Emacs 的工具,而不是具有相同功能的的单独的工具。
一个小花絮:我又在使用离线 imap 了!我甚至在很久以前就用过 GNUS
### 用一个 Emacs 进程来管理
我以前也经常使用 Emacs那时Emacs 是一个“大”的程序(现在显示电源状态的小程序占用的内存要比 Emacs 的多)。当时存在在启动时间过长的问题,但是现在已经有连接到一个正在运行的 Emacs 进程的解决方法。
我喜欢用 Mod-p一个 [xmonad][6](译者注:一种平铺桌面) 中 [dzen][7]译者注X11 窗口下管理消息,提醒和菜单的程序)菜单栏的快捷方式,但是 DEs译者注不太清楚是啥但据我的经验来说大概是 Debian 系列的缩写吧) 中常用的快捷键是 `Alt-F2` 来启动程序。这个设置在不运行多个 emacsen 时很方便,因为这样就不会在试图捕获另一个打开的文件时出问题。这中方法很简单:创建一个叫 `em` 的脚本并将它放到我自己的环境变量中。就像这样:
`#!/bin/bash exec emacsclient -c -a "" "$@"`
如果没有 emacs 进程存在的话,就会创建一个新的 emacs 进程,否则的话就直接使用已存在的进程。这样做还有一个好处:`-nw` 之类的参数成功的话,它实际上就像在 shell 提示符下输入 `emacs` 一样。这样的设置对`编辑器`来说很合适。
### 下一篇
接下来我将讨论我的使用情况,并展示以下的配置:
* org-mode包括计算机之间的同步、捕获、日程和待办事项、文件、链接、关键字和标记、各种导出(幻灯片)等。
* mu4e用于电子邮件包括多个账户bbdb集成
* ERC用于 IRCInternet Relay Chat 和即时通讯
--------------------------------------------------------------------------------
via: http://changelog.complete.org/archives/9861-emacs-1-ditching-a-bunch-of-stuff-and-moving-to-emacs-and-org-mode
作者:[John Goerzen][a]
译者:[oneforalone](https://github.com/oneforalone)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]:http://changelog.complete.org/archives/author/jgoerzen
[1]:https://www.gnu.org/software/emacs/
[2]:https://gettingthingsdone.com/
[3]:https://zenhabits.net/zen-to-done-the-simple-productivity-e-book/
[4]:https://www.youtube.com/watch?v=oJTwQvgfgMM
[5]:https://orgmode.org/
[6]:https://wiki.archlinux.org/index.php/Xmonad_(%E7%AE%80%E4%BD%93%E4%B8%AD%E6%96%87)
[7]:http://robm.github.io/dzen/