Skip to content

Instantly share code, notes, and snippets.

@susisu
Last active April 2, 2018 10:18
Show Gist options
  • Save susisu/57eb1cbf779162cadd9ccb5a92fe0d57 to your computer and use it in GitHub Desktop.
Save susisu/57eb1cbf779162cadd9ccb5a92fe0d57 to your computer and use it in GitHub Desktop.
My Atom configs
# 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 make opened Markdown files always be soft wrapped:
#
# path = require 'path'
#
# atom.workspaceView.eachEditorView (editorView) ->
# editor = editorView.getEditor()
# if path.extname(editor.getPath()) is '.md'
# editor.setSoftWrap(true)
atom.commands.add 'atom-text-editor:not(.mini)',
"editor:tab": (event) ->
event.stopPropagation()
editor = @getModel()
editor.transact editor.getUndoGroupingInterval(), ->
editor.insertText('\t')
'.platform-darwin atom-text-editor:not(.mini)':
'shift-cmd-L': 'grammar-selector:show'
'alt-tab' : 'editor:tab'
'cmd-shift-M': 'markdown-preview-plus:toggle'
'cmd-shift-X': 'markdown-preview-plus:toggle-render-latex'
'ctrl-w' : 'linter-ui-default:expand-tooltip'
'.platform-darwin atom-text-editor:not(.mini)[data-grammar="source ocaml"]':
'ctrl-q': 'ocaml-merlin:show-type'
'.platform-darwin atom-text-editor:not(.mini)[data-grammar="source haskell"]':
'ctrl-q': 'haskell-ghc-mod:show-type-and-info'
'.platform-darwin atom-text-editor.autocomplete-active':
'escape': 'autocomplete-plus:cancel'
'.platform-darwin atom-text-editor:not(.mini):not(.autocomplete-active).markdown-table-editor-active':
'shift-cmd-a' : 'markdown-table-editor:select-cell'
'cmd-left' : 'markdown-table-editor:move-left'
'cmd-right' : 'markdown-table-editor:move-right'
'cmd-up' : 'markdown-table-editor:move-up'
'cmd-down' : 'markdown-table-editor:move-down'
'shift-cmd-left' : 'markdown-table-editor:align-left'
'shift-cmd-right' : 'markdown-table-editor:align-right'
'shift-cmd-up' : 'markdown-table-editor:align-center'
'shift-cmd-down' : 'markdown-table-editor:align-none'
'alt-shift-cmd-left' : 'markdown-table-editor:move-column-left'
'alt-shift-cmd-right': 'markdown-table-editor:move-column-right'
'alt-shift-cmd-up' : 'markdown-table-editor:move-row-up'
'alt-shift-cmd-down' : 'markdown-table-editor:move-row-down'
'cmd-k cmd-i' : 'markdown-table-editor:insert-row'
'cmd-k alt-cmd-i' : 'markdown-table-editor:delete-row'
'cmd-k cmd-j' : 'markdown-table-editor:insert-column'
'cmd-k alt-cmd-j' : 'markdown-table-editor:delete-column'
// atom-text-editor:not(.mini) {
// font-family: "Cica";
// font-size: 9.5px;
// line-height: 12px;
// }
.tab-bar {
display: none;
}
atom-dock .tab-bar {
display: flex;
}
.markdown-preview {
font-size: 12px !important;
}
ide-haskell-item-description {
font-family: "VL Gothic" !important;
}
ide-haskell-tooltip {
font-size: 10px;
}
@media screen and (min-device-width: 1440px) {
.tree-view.tool-panel, .status-bar {
font-size: 14px;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment