每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,欢迎关注开源日报。交流QQ群:202790710;电报群 https://t.me/OpeningSourceOrg


今日推荐开源项目:《重新体验童年乐趣,JavaScript版NES模拟器——JSNES》GitHub地址

推荐理由:来不及解释了,先一起玩一局吧!点这里,https://jsnes.fir.sh/

一款NES 模拟器的js 库,在浏览器上,你便可以重新体验童年的乐趣,具体使用请参考官方文档,另外,官方给出了一个实例网页,就是上面那个地址。在这个网页上,你可以游玩它给出的所有游戏。

运行塞尔达传说:

开源周报2018年第6期:程序员的温柔,是为了你周末双休

今日推荐英文原文:《5 Emacs modes for writers》作者:Scott Nesbitt

原文链接:https://opensource.com/article/18/5/emacs-modes-writers

推荐理由:如果你经常使用 Emacs 编辑器,或者 Emacs 操作系统来写东西,那么这5个小工具非常有用,如果你还没开始用 Emacs?那还不赶紧试试!

5 Emacs modes for writers

Not all writers work within the confines of a word processor. More than a few of us tap out words in a humble (and sometimes not so humble) text editor.

When you find a text editor that works for you, and works the way you want it to, you tend to hold onto it like that beaten up leather jacket, like that dog-eared book, or like that collection of old vinyl records.

For some, that editor is vi or Vim. For others, it's Nano or Atom. For me, that editor is Emacs. Why? Mainly because of its variety of modes, including some crafted especially for writers.

Here's a look at five Emacs modes that writers will find useful.

Muse

When I stumbled upon Muse in the early 2000s, it quickly made Emacs my go-to tool for writing and publishing. You can use this mode to create and publish articles, reports, blog posts, web pages, recipes, poems, documentation, and more.

Writing with Muse is simple. You format your work with a markup language that's similar to Markdown, with a bit of HTML thrown in for good measure. The markup takes some getting used to, but you should be able to adapt to it quickly.

Once you're done writing, you can publish your work as HTML or XHTML, Blosxom, LaTeX, DocBook, PDF, or Texinfo.

Writing this article with Muse

Org mode

Like Emacs itself, people use Org mode for just about everything: from taking notes and maintaining their task lists, to writing and publishing blog posts, to creating presentation slides. And a lot more.

For writers, Org mode is a great way to outline what they're working on and to take notes. You can add links between your notes and outline points, which enables you to jump between bits of information when you need to. You can also add tags to the headings in your notes to make it easier to find specific notes when you need them.

If you need to, you can export your work to a number of formats, including HTML, LaTeX, ODT, and Markdown.

Org mode

Flyspell

No matter how careful you are, typos and misspellings slip through as you're writing. Because of that, every writer should run his or her work through a spelling checker at least once.

I often use Aspell when working with text files, but I find it's faster to check my spelling within Emacs using Flyspell. As you might have guessed from the name, Flyspell is an on-the-fly spelling checker that works as you type.

Flyspell highlights misspelled or unrecognized words. Click the mouse wheel on one of those words to pop up a list of correct spellings. Select the one that you want, or tell Flyspell to remember or ignore that word.

Flyspell

wc Mode

You might be writing for a print or online publication. You might have swallowed the myth of the optimal length of a blog post. Or you might just be trying to learn to write short. No matter who you're writing for or why, sometimes you need to make sure your work stays within the boundaries of a word count.

wc mode does one thing and does it well: It counts the number of words, lines, and characters in what you're writing. You can also highlight a section of text and get its word count.

To use wc mode, type M-x wc and the word count of what you're writing appears in the mini buffer at the bottom of the screen. What could be simpler?

wc mode

WriteGood Mode

Writing clear prose takes a lot of work. One key to writing clearly is choosing the correct words. Equally important is knowing which words not to use. No matter your level of experience as a scribe, you can always use some help with that.

That's where WriteGood Mode comes in. It's designed to find common writing problems—mainly passive wording (which too many writers let slip through), duplicate words, and so-called weasel words. WriteGood mode can also perform readability tests on your writing.

The list of weasel and passive words that WriteGood mode uses is in the file writegood-mode.el. You can add or delete words by editing the file.

WriteGood mode

A few other modes worth mentioning

If you're interested in screenwriting (or learning how to do it), you don't need to spend a lot of money on proprietary tools. Instead, take a look at Fountain mode, which lets you work with Fountain, a markup language for scripts based on Markdown. After you write your scripts, you can export them as HTML, PDF, or Final Draft files.

Speaking of Markdown, if you write with that language, you'll want to use Markdown mode. It lets you add formatting using keystrokes or a menu, applies syntax highlighting, and saves your work as HTML. Markdown mode does a lot more, too.

Distractions are everywhere, including within Emacs. To get rid of those distractions, and concentrate on your words, check out Writeroom mode. It hides menus and the toolbar, puts Emacs into full screen mode, and hides the scrollbar.

Do you have a favorite Emacs mode that you use when writing? Why not share it by leaving a comment?


每天推荐一个 GitHub 优质开源项目和一篇精选英文科技或编程文章原文,欢迎关注开源日报。交流QQ群:202790710;电报群 https://t.me/OpeningSourceOrg