Skip to content

Instantly share code, notes, and snippets.

@pazairfog
Last active July 25, 2018 08:30
Show Gist options
  • Select an option

  • Save pazairfog/de581a5693cdfafb7ac15c6eb416005c to your computer and use it in GitHub Desktop.

Select an option

Save pazairfog/de581a5693cdfafb7ac15c6eb416005c to your computer and use it in GitHub Desktop.
Atom IDEish installation, configuration and beyond
"*":
"atom-beautify":
css:
newline_between_rules: false
html:
brace_style: "end-expand"
indent_inner_html: true
php:
default_beautifier: "PHPCBF"
disabled: true
scss: {}
"atom-ide-ui":
use:
"atom-ide-busy-signal": false
"atom-ide-code-format": false
"atom-ide-code-highlight": false
"atom-ide-diagnostics": false
"atom-ide-diagnostics-ui": false
"atom-ide-find-references": false
"atom-ide-outline-view": false
"atom-package-deps":
ignored: []
autosave:
enabled: true
core:
allowPendingPaneItems: false
audioBeep: false
disabledPackages: [
"open-on-github"
"about"
"language-toml"
"background-tips"
"dev-live-reload"
"language-c"
"language-clojure"
"language-csharp"
"language-gfm"
"language-go"
"language-java"
"language-mustache"
"language-make"
"language-less"
"language-objective-c"
"language-perl"
"language-ruby"
"language-ruby-on-rails"
"language-property-list"
"archive-view"
"github"
]
ignoredNames: [
".git"
".hg"
".svn"
".DS_Store"
"._*"
"Thumbs.db"
"*.txt"
"*.pdf"
"*.ttf"
"*.woff"
"*.bmp"
"*.jpg"
"*.jpeg"
"*.gif"
"*.png"
"*.svg"
"*.ico"
"*.psd"
"*.rb"
"*.lock"
"*.xml"
"*.xsl"
"*.xslt"
"*.html"
"*.scssc"
"*.log"
"*.config"
".htaccess"
".csslintrc"
".editorconfig"
".eslint*"
".bzrignore"
"authorize.php"
"cron.php"
"install.php"
"update.php"
"web.config"
"xmlrpc.php"
"autoload.php"
"sql"
"data"
"Gemfile"
".sass-cache"
]
openEmptyEditorOnStart: false
docblockr:
param_description: false
per_section_indent: true
return_description: false
editor:
fontSize: 17
"find-and-replace":
focusEditorAfterSearch: true
"git-diff":
showIconsInEditorGutter: true
"ide-php":
phpPath: "/usr/bin/php7.1"
linter:
lintOnChangeInterval: 800
"linter-phpcs":
autoExecutableSearch: false
displayErrorsOnly: true
otherLanguages: {}
tabWidth: 2
"linter-ui-default":
panelHeight: 300
"markdown-preview-plus":
useGitHubStyle: true
"markdown-writer":
fileExtension: ".md"
"one-dark-ui": {}
"php-debug":
currentPanelMode: "bottom"
"spell-check":
localePaths: [
"/usr/share/myspell"
]
"tree-view":
hideIgnoredNames: true
squashDirectoryNames: true
whitespace:
ignoreWhitespaceOnCurrentLine: false
".html.php.text":
editor:
normalizeIndentOnPaste: "1"
".sass.source":
editor:
autoIndentOnPaste: true
#!/bin/bash
# Install atom latest version for architecture in amd64
hash git 2>&1 >/dev/null || {
echo "Please install git ( sudo apt-get install git )" >&2
exit 1
}
GITHUB_BASEURL='https://github.com'
RELEASE_URL='https://github.com/atom/atom/releases/latest'
LATEST_RELEASE=$GITHUB_BASEURL$(/usr/bin/curl --silent -L $RELEASE_URL | /usr/bin/awk '/atom-amd64.deb/ { print $2; exit; }' | /bin/sed 's/"//g'| /bin/sed 's/href=//g')
sudo wget $LATEST_RELEASE
sudo dpkg -i atom-amd64.deb
sudo rm -rf atom-amd64.deb
echo $LATEST_RELEASE
# Custom keymap
'.platform-win32, .platform-linux':
'ctrl-!': 'tree-view:reveal-active-file'
'.platform-linux atom-text-editor:not([mini])':
'ctrl-click': 'hyperclick:confirm-cursor'
'ctrl-alt-s': 'snippets:available'
'ctrl-alt-w': 'pane:close-other-items'
'ctrl-alt-b': 'atom-beautify:beautify-editor'
# Custom snippets
'.source.php':
'Renderable array':
'prefix': 'render_array'
'body': """
[
'#type' => '$1',
'#tag' => '$2',
'#value' => $3,
'#attributes' => ['class' => ['$4']],
];
"""
# Custom stylesheet
atom-text-editor {
background-color: #21252b;
}
.gutter:last-child {
border-right: 1px solid #1E2228;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment