mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-18 20:37:20 +02:00
Compare commits
5 Commits
8309e9254e
...
1feed4ea3f
Author | SHA1 | Date | |
---|---|---|---|
1feed4ea3f | |||
a00dd239cf | |||
a03688a77b | |||
0ec8afbde0 | |||
e669ab9817 |
@ -5,7 +5,9 @@ root = true
|
|||||||
# Defaults
|
# Defaults
|
||||||
[*]
|
[*]
|
||||||
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
# Future: https://github.com/editorconfig/editorconfig/issues/89
|
||||||
# Linux line endings, this repo/file is unlikely to be used in Windows
|
# Remember to always .gitattributes. lf line-endings are prettier default and
|
||||||
|
# required by doctoc, so enabling either of those breaks on Windows unless lf
|
||||||
|
# is specified here and in .gitattributes
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
@ -13,11 +15,15 @@ charset = utf-8
|
|||||||
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
||||||
indent_style = tab
|
indent_style = tab
|
||||||
indent_size = tab
|
indent_size = tab
|
||||||
|
# Usable in common Braille displays? Line continuation marker and diffing
|
||||||
|
# take two. Prettier default 80. WCAG requirement 80.
|
||||||
|
max_line_length = 78
|
||||||
# Opinionated affecting only display, better to not set
|
# Opinionated affecting only display, better to not set
|
||||||
#tab_width =
|
#tab_width =
|
||||||
|
|
||||||
# *nix, just in case
|
# *nix, just in case
|
||||||
[*.{bash,sh}]
|
[*.{bash,sh}]
|
||||||
|
# .gitattributes !
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
|
|
||||||
# Limnoria/Supybot config files use trailing spaces for empty config files,
|
# Limnoria/Supybot config files use trailing spaces for empty config files,
|
||||||
@ -30,6 +36,9 @@ trim_trailing_whitespace = false
|
|||||||
indent_style = space
|
indent_style = space
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
|
[*.csv]
|
||||||
|
max_line_length =
|
||||||
|
|
||||||
# Markdown apparently allows linebreaks by two trailing spaces, while I
|
# Markdown apparently allows linebreaks by two trailing spaces, while I
|
||||||
# never seem to do that, maybe I should accept it
|
# never seem to do that, maybe I should accept it
|
||||||
[{LICENSE,*.{markdown,md}}]
|
[{LICENSE,*.{markdown,md}}]
|
||||||
@ -64,9 +73,15 @@ indent_style = tab
|
|||||||
indent_size = tab
|
indent_size = tab
|
||||||
# empty last columns/fields
|
# empty last columns/fields
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
max_line_length =
|
||||||
|
|
||||||
|
# RFC 678
|
||||||
|
#[*.txt]
|
||||||
|
#max_line_length = 72
|
||||||
|
|
||||||
# Windows line-endings for Windows
|
# Windows line-endings for Windows
|
||||||
[*.{reg,bat,ahk}]
|
[*.{reg,bat,ahk}]
|
||||||
|
# Remember the .gitattributes !
|
||||||
end_of_line = crlf
|
end_of_line = crlf
|
||||||
|
|
||||||
# YAML requires spaces. The GitHub citation files look YAML to me.
|
# YAML requires spaces. The GitHub citation files look YAML to me.
|
||||||
|
@ -19,3 +19,5 @@ repos:
|
|||||||
hooks:
|
hooks:
|
||||||
- id: editorconfig-checker
|
- id: editorconfig-checker
|
||||||
alias: ec
|
alias: ec
|
||||||
|
# I don't actually care about line lengths as more than a guideline
|
||||||
|
args: [-disable-max-line-length]
|
||||||
|
10
rc/vimrc
10
rc/vimrc
@ -105,6 +105,10 @@ autocmd BufReadPost *
|
|||||||
" Highlight all search results
|
" Highlight all search results
|
||||||
set hlsearch
|
set hlsearch
|
||||||
|
|
||||||
" Red column on the right as indication on what I wish to consider as the
|
" Keep text under 78 chars. Common Braille displays have 80, one reserved for
|
||||||
" maximum length of a line.
|
" line continuation, one for diffing?
|
||||||
set colorcolumn=76
|
" https://github.com/prettier/prettier/issues/7475#issuecomment-1484238440
|
||||||
|
set textwidth=78
|
||||||
|
" Marginal/line just before that. Set separately so it gets affected by
|
||||||
|
" editorconfig and modelines?
|
||||||
|
set colorcolumn=-1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user