diff --git a/.atom/config.cson b/.atom/config.cson new file mode 100644 index 0000000..ec0be0a --- /dev/null +++ b/.atom/config.cson @@ -0,0 +1,18 @@ +"*": + "bracket-matcher": {} + core: + audioBeep: false + telemetryConsent: "limited" + useTreeSitterParsers: false + editor: + lineHeight: 1.25 + preferredLineLength: 120 + scrollPastEnd: true + tabLength: 4 + "exception-reporting": + userId: "4af648ae-236c-4a18-be73-72a7b1981edc" + "git-diff": {} + tabs: + enableMruTabSwitching: false + welcome: + showOnStartup: false diff --git a/.atom/keymap.cson b/.atom/keymap.cson new file mode 100644 index 0000000..80534d5 --- /dev/null +++ b/.atom/keymap.cson @@ -0,0 +1,20 @@ +# Disable Enter key for confirming an autocomplete suggestion +#'atom-text-editor:not(mini).autocomplete-active': +# 'enter': 'editor:newline' + +# 'body': +# 'ctrl-tab': 'pane:show-next-item' +# 'ctrl-tab ^ctrl': 'unset!' +# 'ctrl-shift-tab': 'pane:show-previous-item' +# 'ctrl-shift-tab ^ctrl': 'unset!' + +'atom-text-editor': + 'shift-enter': 'editor:move-to-end-of-screen-line' + # vim-like cursor movement with alt-[hjkl] + 'alt-h': 'core:move-left' + 'alt-j': 'core:move-down' + 'alt-k': 'core:move-up' + 'alt-l': 'core:move-right' + # jump to previous/next linter error + 'ctrl-<': 'linter-ui-default:previous' + 'ctrl->': 'linter-ui-default:next' diff --git a/.atom/styles.less b/.atom/styles.less new file mode 100644 index 0000000..7e32eaf --- /dev/null +++ b/.atom/styles.less @@ -0,0 +1,46 @@ +// Line-highlighting for ToDo tags + +// TODO example +// FIXME example +// XXX example +// NOTE example + +.syntax--todo, +.syntax--fixme, +.syntax--xxx, +.syntax--note { + display: inline-block; + position: relative; + color: rgba(0, 255, 0, 0.8); + background: rgba(0, 255, 0, 0.08); + font-weight: bold; + + &:before, &:after { + display: block; + position: absolute; + top: 0; + height: 100%; + width: 8192px; + // z-index: 9999; + content: ''; + background: inherit; + pointer-events: none; + } + &:before { + right: 100%; + } + &:after { + left: 100%; + } +} + +.syntax--fixme, +.syntax--xxx { + color: rgba(255, 0, 0, 1); + background: rgba(255, 0, 0, 0.1); +} + +.syntax--note { + color: rgba(80, 80, 255, 1); + background: rgba(0, 0, 255, 0.1); +}