Atom 環境構築 (再)

Atom を 1.1.0 から 1.2.0 にアップグレードしたら設定とかパッケージが初期化してしまいました...。カッとなって環境構築メモ。

環境

> apm -v
apm  1.4.0
npm  2.13.3
node 0.10.40
python
git 1.9.5.github.0
visual studio 2013
> 
> apm install --check
Checking for native build tools done

※初期インストールでは以下が必要。

setx ATOM_NODE_URL http://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist /M

Proxy

弊社プロキシ環境なので。

  1. File > Settings > Open Config Folder
  2. atom フォルダ下に .apmrc を作成
https-proxy = https://proxy-host:port

ツリー/タブ等のフォントを変更

フォントは 等幅のメイリオ を使っています。

  1. File > Settings > Open Config Folder
  2. styles.less
@mainFont: "MeiryoKe_Gothic";
atom-workspace {
  font-family: @mainFont;
}
atom-text-editor {
  font-family: @mainFont;
}
.tree-view {
  font-family: @mainFont;
}
.tooltip {
  font-family: @mainFont;
}

Settings

  • Auto Beep : OFF
  • Font Family : MeiryoKe_Gothic
  • Font Size : 13
  • Show Invisibles : ON

Packages

emmetio/emmet-atom

  1. Settings > Packages > emmet > Settings
  2. View Code
  3. emmet/node_modules/emmet/lib/snippets.json
"variables": {
  "lang": "ja",
  "locale": "ja-JP",
  "charset": "UTF-8",
  "indentation": "\t",
  "newline": "\n"
},
...

コードの展開を Ctrl-e にしたいのと Markdown Preview のキーバインドがバッティングしているので設定する。

  1. Settings > Keybindings > your keymap file
  2. keymap.cson
'.platform-win32 atom-text-editor, .platform-linux atom-text-editor': 'ctrl-e': 'unset!'
'atom-workspace, atom-workspace atom-text-editor': 'ctrl-shift-M': 'markdown-preview:toggle'
'atom-text-editor:not([mini])': {
  'ctrl-shift-M': 'unset!',
  'ctrl-e': 'emmet:expand-abbreviation'
}

※1.1.0 では Settings のショートカット(Ctrl-,)がバッティングしていたけど 1.2.0 では大丈夫な模様。

richrace/highlight-line

  1. Settings > Packages > highlight-line > Settings
  2. Enable Background Color : ON

richrace/highlight-selected

  1. Settings > Packages > highlight-selected > Settings
  2. Highlight Background : ON

atom-minimap/minimap

atom-minimap/minimap-highlight-selected

wpillar/atom-trailing-spaces

atom-community/language-scala

Trickierstinky/language-asp

Themes

kevinsawicki/monokai


追記(2015/11/18)

こんな便利パッケージがあったんですね...。

Hackafe/atom-sync-settings

これ MacWindows で同期したらキーバインディングはどうなるんだろ。