LoginSignup
1
3

More than 5 years have passed since last update.

Atom カスタマイズ

Last updated at Posted at 2016-09-12

はじめに

  • Windows と Mac で設定を共有したいけれど、固有の設定を判別できるようにしたい。

ステータスバーなどのフォントサイズを変更する

@font-size: 1rem;

html,
body,
.tree-view,
.tooltip,
.tab-bar .tab,
.find-and-replace .find-meta-container,
atom-text-editor[mini],
.btn,
.status-bar,
linter-message {
  font-size: @font-size;
}

プラットフォーム毎に設定を分ける

init.coffee
if platform = document.body.className.match(/platform-(darwin|win32|linux)/)?[1]
  path = require 'path'
  CSON = require path.join atom.getLoadSettings().resourcePath, '/node_modules/season'
  config = CSON.readFileSync atom.config.getUserConfigPath()
  if config[platform]?
    for own scopeSelector, scopeConfig of config[platform]
      for own namespace, namespaceConfig of scopeConfig
        for own key, value of namespaceConfig
          atom.config.set "#{namespace}.#{key}", value, scopeSelector
config.cson
'*':
  'editor':
    'softWrap': true # enable softWrap
'source.python':
  'editor':
    'softWrap': false # except in python files
'darwin':
  '*':
    'editor':
    'softWrap': false # disable softWrap on mac
  'source.python':
    'editor':
    'softWrap': true # except in python files

Packages

Theme

  • slack-ui
  • zenburn-syntax

Utilities

  • atom-alignment
  • atom-beautify
  • autocomplete-paths
  • compare-files
  • jumpy
  • keybinding-cheatsheet
  • maximize-panes
  • sort-lines
  • Sublime-Style-Column-Selection
  • toggle-quotes

View

  • block-cursor
  • file-icons
  • highlight-line

HTML, Markdown

  • browser-plus
  • color-picker
  • emmet
  • markdown-preview-plus
  • markdown-writer
  • pigments

Git

  • git-plus
  • merge-conflicts

language, programming

  • linter
  • linter-eslint
  • project-manager
  • surround-with
1
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
3