Use Atom for writing

 I use markdown for writing most of the time and I like a light tool to do it. Atom is an open source ide used mostly for web programming but it can easily be tuned to make of it a distraction free environment ideal for writing.

I have updated the atom css style sheet to have a warm gray background color, easy on the eyes with a bold font weight. And also hid the gutter with line numbers, you do not need line numbers when writing usually.

One good thing to do is uninstall or deactivate all unneeded packages to improve performance.
I have installed the https://atom.io/packages/wordcount to display the number of written words on the bottom bar. It counts as you type.

Text browsing by markdown tags

Works out of the box with ctrl-r or cmd-r then you can type words on the search input to find an H2 title for example.

Markdown with preview

Another interesting package is markdown preview https://github.com/atom/markdown-preview to works by pressing Crl-shift-m
 


Markdown preview Atom

Custom style.less for Atom.

// Global text editor
atom-text-editor {
    font-weight: bold;
    color: #2d3e49;
    background-color: #D4D0C8;
    padding-left: 1.0em; /* use this rule only when hiding line numbers */
}

// Make current line transparent
atom-text-editor.editor.is-focused {
  .line.cursor-line {
    background: transparent;
  }
}

// Magenta bigger cursor
atom-text-editor.editor .cursor {
   border-color: #FF00FF;
   transition:opacity 0.5s linear;
   background-color: #FF00FF;
   width: 5px !important;
   visibility: visible;
}

/* Uncomment if you want stop cursor blinking
atom-text-editor.editor .cursors.blink-off .cursor {
opacity: 1;
border-color: #FF00FF;
transition: border-color .4s;
}
*/

// This styles comment text
atom-text-editor .syntax--comment {
    color: #32807C;
}

// This styles comment punctuation (i.e. //, and /*...*/)
.syntax--punctuation.syntax--definition.syntax--comment {
    color: #32807C;
}

// Strings
.syntax--string {
     color: #2A0AFF;
}

// Keywords
.syntax--keyword {
    color: #7F0055;
}

// Variable
.syntax--variable {
    color: #0000A0;
}

// Constant
.syntax--constant {
    color: #CD0000;
}

// Hide gutter and line numbers
.gutter {
  display: none;
}

Full screen mode

Very important to write without distractions
For mac: crtl+cmd+f

Set Spanish spelling

First get the Spanish dictionary

https://github.com/sbosio/rla-es/tree/master/source-code/hispalabras-0.1/hispalabras

Download es_ES.aff and es_ES.dic


And copy both in your local path

/Users/username/dictionary

I think you can follow the same procedure for another language.

Configure spell-check

Got to Preferences > Packages and look for spell-checking

  • In the settings check [x] Use locales
  • In locales type: es-ES
  • In locales path: set the path to the es_ES dictionaries files. /Users/username/dictionary

This will make you see underline in red all wrong spelled words and if you right click on a bad spelled word you will see a list or replacements.

Comments

Popular posts from this blog

Repair Dolce Gusto Circolo Leaking Problem

Root Nook Simple Touch with updated NookManager

How to Change the Gear Shift Knob of the Peugeot 306