Skip to content

Instantly share code, notes, and snippets.

@carlos-jenkins
Last active March 7, 2019 19:50
Show Gist options
  • Save carlos-jenkins/3277fa8ecc757f2284a924c9838f2040 to your computer and use it in GitHub Desktop.
Save carlos-jenkins/3277fa8ecc757f2284a924c9838f2040 to your computer and use it in GitHub Desktop.
Sublime Text and Atom Setup for Ubuntu

Code Editors

  1. Install from official repository:

    wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
    echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
    sudo apt update
    sudo apt install sublime-text
    
  1. Install Package Control: Tools -> Install Package Control.
  2. Type Ctrl+Shift+P - Package Control : Install Packages, and install:
    • GitGutter
    • Anaconda
    • Seti_UI

Go to Preferences -> Settings and paste:

{
    "draw_white_space": "all",
    "font_size": 15,
    "highlight_line": true,
    "rulers":
    [
        80
    ],
    "scroll_past_end": true,
    "shift_tab_unindent": true,
    "theme": "Seti_orig.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true
}

Install it with:

sudo apt-get install gdebi-core
wget https://atom.io/download/deb -O atom-amd64.deb
sudo gdebi atom-amd64.deb

Install all plugins from my public user:

$ apm stars --user carlos-jenkins --install

Now launch Atom and close it in order for it to create all configuration files. Now, configure the proxys as follows (use your own proxy configuration):

$ cat .atom/.apmrc
https-proxy=http://web-proxy.cr.hpecorp.net:8080/
proxy=http://web-proxy.cr.hpecorp.net:8080/

Finally, configure your editor like this:

$ cat .atom/config.cson
"*":
  core:
    audioBeep: false
    themes: [
      "atom-dark-ui"
      "monokai"
    ]
  editor:
    invisibles:
      eol: " "
    scrollPastEnd: true
    showIndentGuide: true
    showInvisibles: true
    tabLength: 4
  linter:
    lintOnFly: false
  minimap:
    plugins:
      "find-and-replace": true
      "git-diff": true
      selection: true
  tabs:
    usePreviewTabs: true
  "tree-view":
    hideVcsIgnoredFiles: true
  welcome:
    showOnStartup: false
  whitespace:
    ignoreWhitespaceOnCurrentLine: false

Changes with respect to the default:

  1. Added a minimap.
  2. Strip trailing whitespaces on save.
  3. Ensure one newline at the end of file.
  4. PEP8 linting for Python code, on save.
  5. Hide files in .gitignore from treeview.
  6. Scroll pass end of file.
  7. Show whitespace characters.
  8. Disable audio beep.
  9. Use monokai theme.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment