每天推薦一個 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