Skip to content

Instantly share code, notes, and snippets.

@ikaruga777
Last active July 20, 2018 01:04
Show Gist options
  • Save ikaruga777/277cac5f231da047b4f706a8a29e79d3 to your computer and use it in GitHub Desktop.
Save ikaruga777/277cac5f231da047b4f706a8a29e79d3 to your computer and use it in GitHub Desktop.
# Your init script
#
# Atom will evaluate this file each time a new window is opened. It is run
# after packages are loaded/activated and after the previous editor state
# has been restored.
#
# An example hack to log to the console when each text editor is saved.
#
# atom.workspace.observeTextEditors (editor) ->
# editor.onDidSave ->
# console.log "Saved! #{editor.getPath()}"
# Your keymap
#
# Atom keymaps work similarly to style sheets. Just as style sheets use
# selectors to apply styles to elements, Atom keymaps use selectors to associate
# keystrokes with events in specific contexts.
#
# You can create a new keybinding in this file by typing "key" and then hitting
# tab.
#
# Here's an example taken from Atom's built-in keymap:
#
# 'atom-text-editor':
# 'enter': 'editor:newline'
#
# 'atom-workspace':
# 'ctrl-shift-p': 'core:move-up'
# 'ctrl-p': 'core:move-down'
#
# You can find more information about keymaps in these guides:
# * https://atom.io/docs/latest/customizing-atom#customizing-key-bindings
# * https://atom.io/docs/latest/advanced/keymaps
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
[
{
"name": "about",
"version": "1.9.1"
},
{
"name": "activate-power-mode",
"version": "2.7.0"
},
{
"name": "archive-view",
"version": "0.64.6"
},
{
"name": "atom-dark-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-dark-ui",
"version": "0.53.2",
"theme": "ui"
},
{
"name": "atom-html-preview",
"version": "0.2.5"
},
{
"name": "atom-light-syntax",
"version": "0.29.0",
"theme": "syntax"
},
{
"name": "atom-light-ui",
"version": "0.46.2",
"theme": "ui"
},
{
"name": "atom-live-server",
"version": "2.3.0"
},
{
"name": "atom-mermaid",
"version": "3.3.1"
},
{
"name": "atom-prettify",
"version": "0.1.3"
},
{
"name": "autocomplete-atom-api",
"version": "0.10.7"
},
{
"name": "autocomplete-css",
"version": "0.17.5"
},
{
"name": "autocomplete-emojis",
"version": "2.5.0"
},
{
"name": "autocomplete-html",
"version": "0.8.4"
},
{
"name": "autocomplete-plus",
"version": "2.40.6"
},
{
"name": "autocomplete-snippets",
"version": "1.12.0"
},
{
"name": "autoflow",
"version": "0.29.4"
},
{
"name": "autosave",
"version": "0.24.6"
},
{
"name": "background-tips",
"version": "0.28.0"
},
{
"name": "base16-tomorrow-dark-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "base16-tomorrow-light-theme",
"version": "1.5.0",
"theme": "syntax"
},
{
"name": "black-ui",
"version": "0.3.7",
"theme": "ui"
},
{
"name": "bookmarks",
"version": "0.45.1"
},
{
"name": "bracket-matcher",
"version": "0.89.2"
},
{
"name": "busy-signal",
"version": "1.4.3"
},
{
"name": "color-picker",
"version": "2.3.0"
},
{
"name": "command-palette",
"version": "0.43.5"
},
{
"name": "dalek",
"version": "0.2.2"
},
{
"name": "deprecation-cop",
"version": "0.56.9"
},
{
"name": "dev-live-reload",
"version": "0.48.1"
},
{
"name": "encoding-selector",
"version": "0.23.9"
},
{
"name": "exception-reporting",
"version": "0.43.1"
},
{
"name": "file-icons",
"version": "2.1.22"
},
{
"name": "find-and-replace",
"version": "0.215.11"
},
{
"name": "fuzzy-finder",
"version": "1.8.2"
},
{
"name": "git-diff",
"version": "1.3.9"
},
{
"name": "git-plus",
"version": "8.0.0"
},
{
"name": "github",
"version": "0.15.5"
},
{
"name": "go-to-line",
"version": "0.33.0"
},
{
"name": "grammar-selector",
"version": "0.50.1"
},
{
"name": "highlight-selected",
"version": "0.14.0"
},
{
"name": "image-view",
"version": "0.62.4"
},
{
"name": "incompatible-packages",
"version": "0.27.3"
},
{
"name": "intentions",
"version": "1.1.5"
},
{
"name": "japanese-menu",
"version": "1.14.0"
},
{
"name": "keybinding-resolver",
"version": "0.38.1"
},
{
"name": "language-c",
"version": "0.59.5"
},
{
"name": "language-clojure",
"version": "0.22.7"
},
{
"name": "language-coffee-script",
"version": "0.49.3"
},
{
"name": "language-csharp",
"version": "1.0.4"
},
{
"name": "language-css",
"version": "0.42.10"
},
{
"name": "language-gfm",
"version": "0.90.4"
},
{
"name": "language-git",
"version": "0.19.1"
},
{
"name": "language-go",
"version": "0.45.3"
},
{
"name": "language-html",
"version": "0.49.1"
},
{
"name": "language-hyperlink",
"version": "0.16.3"
},
{
"name": "language-java",
"version": "0.29.0"
},
{
"name": "language-javascript",
"version": "0.128.7"
},
{
"name": "language-json",
"version": "0.19.2"
},
{
"name": "language-less",
"version": "0.34.2"
},
{
"name": "language-make",
"version": "0.22.3"
},
{
"name": "language-mustache",
"version": "0.14.5"
},
{
"name": "language-objective-c",
"version": "0.15.1"
},
{
"name": "language-perl",
"version": "0.38.1"
},
{
"name": "language-php",
"version": "0.43.2"
},
{
"name": "language-property-list",
"version": "0.9.1"
},
{
"name": "language-python",
"version": "0.49.5"
},
{
"name": "language-ruby",
"version": "0.71.4"
},
{
"name": "language-ruby-on-rails",
"version": "0.25.3"
},
{
"name": "language-sass",
"version": "0.62.0"
},
{
"name": "language-shellscript",
"version": "0.26.3"
},
{
"name": "language-source",
"version": "0.9.0"
},
{
"name": "language-sql",
"version": "0.25.10"
},
{
"name": "language-text",
"version": "0.7.4"
},
{
"name": "language-todo",
"version": "0.29.4"
},
{
"name": "language-toml",
"version": "0.18.2"
},
{
"name": "language-typescript",
"version": "0.3.3"
},
{
"name": "language-vue",
"version": "0.23.1"
},
{
"name": "language-xml",
"version": "0.35.2"
},
{
"name": "language-yaml",
"version": "0.32.0"
},
{
"name": "line-ending-selector",
"version": "0.7.7"
},
{
"name": "link",
"version": "0.31.4"
},
{
"name": "linter",
"version": "2.2.0"
},
{
"name": "linter-coffeelint",
"version": "2.0.0"
},
{
"name": "linter-eslint",
"version": "8.4.1"
},
{
"name": "linter-js-yaml",
"version": "1.3.0"
},
{
"name": "linter-ruby",
"version": "1.2.6"
},
{
"name": "linter-textlint",
"version": "4.1.0"
},
{
"name": "linter-ui-default",
"version": "1.7.1"
},
{
"name": "markdown-preview",
"version": "0.159.20"
},
{
"name": "markdown-writer",
"version": "2.7.4"
},
{
"name": "metrics",
"version": "1.2.6"
},
{
"name": "monokai",
"version": "0.24.0",
"theme": "syntax"
},
{
"name": "notifications",
"version": "0.70.5"
},
{
"name": "one-dark-syntax",
"version": "1.8.2",
"theme": "syntax"
},
{
"name": "one-dark-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "one-light-syntax",
"version": "1.8.2",
"theme": "syntax"
},
{
"name": "one-light-ui",
"version": "1.12.3",
"theme": "ui"
},
{
"name": "open-on-github",
"version": "1.3.1"
},
{
"name": "package-generator",
"version": "1.3.0"
},
{
"name": "regex-railroad-diagram",
"version": "0.19.4"
},
{
"name": "script",
"version": "3.18.1"
},
{
"name": "settings-view",
"version": "0.254.2"
},
{
"name": "slack-ui",
"version": "0.8.0",
"theme": "ui"
},
{
"name": "snippets",
"version": "1.3.3"
},
{
"name": "solarized-dark-syntax",
"version": "1.1.4",
"theme": "syntax"
},
{
"name": "solarized-light-syntax",
"version": "1.1.4",
"theme": "syntax"
},
{
"name": "spell-check",
"version": "0.73.4"
},
{
"name": "status-bar",
"version": "1.8.15"
},
{
"name": "styleguide",
"version": "0.49.11"
},
{
"name": "svg-preview",
"version": "0.12.1"
},
{
"name": "symbols-view",
"version": "0.118.2"
},
{
"name": "sync-settings",
"version": "0.8.6"
},
{
"name": "tabs",
"version": "0.109.2"
},
{
"name": "timecop",
"version": "0.36.2"
},
{
"name": "tree-view",
"version": "0.222.0"
},
{
"name": "update-package-dependencies",
"version": "0.13.1"
},
{
"name": "welcome",
"version": "0.36.6"
},
{
"name": "whitespace",
"version": "0.37.5"
},
{
"name": "wrap-guide",
"version": "0.40.3"
}
]
{
"activate-power-mode": {
"screenShake": {
"enabled": false
}
},
"atom-beautify": {
"coffeescript": {
"beautify_on_save": true,
"indent_size": 2
},
"general": {
"_analyticsUserId": "c3a2dcf5-3ff3-4edd-a790-4748b6cd60b5"
},
"html": {
"beautify_on_save": true,
"indent_size": 2,
"wrap_attributes_indent_size": 2
},
"js": {
"beautify_on_save": true,
"indent_size": 2
}
},
"core": {
"disabledPackages": [
"minimap",
"japanese-wrap",
"term2",
"activate-power-mode",
"atom-prettify"
],
"telemetryConsent": "no",
"themes": [
"one-dark-ui",
"monokai"
]
},
"editor": {
"fontFamily": "Rounded-mplus-1m-Regular , SauceCodePowerline-Regular",
"fontSize": 13,
"showIndentGuide": true,
"showInvisibles": true,
"zoomFontWhenCtrlScrolling": true
},
"exception-reporting": {
"userId": "e55a64be-7cbd-62ed-7227-d1f96e65472a"
},
"git-plus": {
"general": {
"_analyticsUserId": "746dae75-56c6-4bc4-b999-806cdf3c050e"
}
},
"linter-eslint": {
"globalNodePath": "/Users/ikaruga/.nodebrew/node/v6.0.0",
"useGlobalEslint": true
},
"linter-ruby": {
"rubyExecutablePath": "/Users/ikaruga/.rbenv/shims/ruby"
},
"linter-textlint": {
"textlintRulesDir": "/Users/aka/settings/textlint/node_modules"
},
"linter-ui-default": {
"showPanel": true
},
"markdown-writer": {
"fileExtension": ".md"
},
"minimap": {
"displayCodeHighlights": false
},
"sync-settings": {
"gistDescription": "automatic update by http://atom.io/packages/sync-settings p"
},
"term2": {
"autoRunCommand": "zsh"
},
"welcome": {
"showOnStartup": false
}
}
# Your snippets
#
# Atom snippets allow you to enter a simple prefix in the editor and hit tab to
# expand the prefix into a larger code block with templated values.
#
# You can create a new snippet in this file by typing "snip" and then hitting
# tab.
#
# An example CoffeeScript snippet to expand log to console.log:
#
# '.source.coffee':
# 'Console log':
# 'prefix': 'log'
# 'body': 'console.log $1'
#
# This file uses CoffeeScript Object Notation (CSON).
# If you are unfamiliar with CSON, you can read more about it here:
# https://github.com/bevry/cson#what-is-cson
/*
* Your Stylesheet
*
* This stylesheet is loaded when Atom starts up and is reloaded automatically
* when it is changed.
*
* If you are unfamiliar with LESS, you can read more about it here:
* http://www.lesscss.org
*/
.tree-view {
}
// style the background and foreground colors on the atom-text-editor-element
// itself
atom-text-editor {
}
// To style other content in the text editor's shadow DOM, use the ::shadow
// expression
atom-text-editor::shadow .cursor {
}
// markdown previewを印刷仕様に
.markdown-preview {
@c_border: #666; // border-color
max-width: 900px;
margin: 0 auto;
padding: 25px;
color: black;
hr {
margin: 50px 0;
background-color: transparent;
&:after{
content: "";
display: block;
border-top-style: ridge;
}
&.pb {
// <hr class="pb">を入れる事で、
// プリント時の改ページを指定することができる。
page-break-after: always;
&:after {
display: none;
}
}
}
h1, h2, h3, h4, h5 {
font-weight: normal;
border-color: @c_border;
}
h1 {
font-size: 35px;
border: none;
margin: 30px auto;
text-align: center;
letter-spacing: 5px
}
h2 {
font-size: 25px;
letter-spacing: 3px;
margin: 50px auto 25px;
}
h3 {
font-size: 18px;
font-weight: bold;
margin-bottom: 10px
}
// 僕の用途ではh4以降は基本的に必要ないので、
// 設定していません。
// 見出し以外のタグを字下げする
// ぱっと思いつく、よく使うタグを指定
p, table, ul, ol, dl, pre, blockquote {
margin-left: 25px;
ul, ol, dl {
margin-left: 0px;
}
}
table {
border-collapse: collapse;
border-spacing: 0;
max-width: 800px;
th {
text-align: center;
background-color: #eee;
border-color: @c_border;
}
tr {
border-top: #666;
}
td {
border-color: @c_border;
}
}
.margin-clear {
margin-left: 0;
}
// テキストの中央揃え
.center {
text-align: center;
&:extend(.margin-clear);
}
// テキストの右寄せ
.right {
text-align: right;
&:extend(.margin-clear);
}
}
// たてたぶ
/*
atom-pane.pane {
-webkit-flex-direction: row;
-webkit-flex-wrap: wrap;
&:before {
content: 'Open Files';
color: #787878;
padding: 5px 10px;
display: block;
position: absolute;
top: 0;
left: 0;
}
.item-views {
box-shadow: -1px 0 0 0 rgba(0,0,0,.5)
}
}
.tab-bar {
height: auto;
overflow-x: hidden;
overflow-y: auto;
-webkit-flex-direction: column;
padding: 0;
margin-top: 26px;
box-shadow: inset 0 -8px 8px -4px rgba(0, 0, 0, 0.15), 0 -1px 0 0 rgba(0,0,0,.5);
&:after {
display: none;
}
&.list-inline > li:first-child {
padding-left: 10px;
}
.placeholder {
position: relative;
height: 1px;
width: auto;
margin: 0;
box-shadow: none;
&:after {
display: none;
}
}
.tab {
max-width: none;
-webkit-flex: 0 0 auto;
margin: 0 0 0px 0;
top: 0;
padding: 0 10px 0 10px;
background: rgba(255,255,255,.05);
box-shadow: 0 -1px 0 0 rgba(0,0,0,.3) inset;
height:autox;
&.is-dragging {
background: rgba(0,0,0, .65);
}
&:before, &:after {
display: none;
}
&.is-dragging {
box-shadow: 0 0 0 1px #484848;
}
&:not(.is-dragging):hover {
background: rgba(255,255,255,.1);
box-shadow: 0 0 6px 0 #000, 0 -1px 0 0 rgba(0,0,0,.5) inset;
}
&.active {
-webkit-flex: 0 0 auto;
width: 200px;
background: none;
box-shadow: 0 0 3px 0 #000;
}
.title {
padding-right: 30px;
}
.close-icon {
right: 20px;
line-height: 200%;
}
&.modified:not(:hover) {
.close-icon {
right: 10px;
}
}
}
}*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment