add Atom config files from kanaya

This commit is contained in:
Lexi / Zoe 2019-03-09 16:50:49 +01:00
parent 39feb5192c
commit 6223f8a91b
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
3 changed files with 84 additions and 0 deletions

18
.atom/config.cson Normal file
View File

@ -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

20
.atom/keymap.cson Normal file
View File

@ -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'

46
.atom/styles.less Normal file
View File

@ -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);
}