mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2025-08-18 04:17:21 +02:00
Compare commits
5 Commits
8309e9254e
...
1feed4ea3f
Author | SHA1 | Date | |
---|---|---|---|
1feed4ea3f | |||
a00dd239cf | |||
a03688a77b | |||
0ec8afbde0 | |||
e669ab9817 |
@ -5,7 +5,9 @@ root = true
|
||||
# Defaults
|
||||
[*]
|
||||
# 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
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
@ -13,11 +15,15 @@ charset = utf-8
|
||||
# Accessibility reasons. Vim: :%retab! (note also :set ts=4)
|
||||
indent_style = 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
|
||||
#tab_width =
|
||||
|
||||
# *nix, just in case
|
||||
[*.{bash,sh}]
|
||||
# .gitattributes !
|
||||
end_of_line = lf
|
||||
|
||||
# Limnoria/Supybot config files use trailing spaces for empty config files,
|
||||
@ -30,6 +36,9 @@ trim_trailing_whitespace = false
|
||||
indent_style = space
|
||||
indent_size = 2
|
||||
|
||||
[*.csv]
|
||||
max_line_length =
|
||||
|
||||
# Markdown apparently allows linebreaks by two trailing spaces, while I
|
||||
# never seem to do that, maybe I should accept it
|
||||
[{LICENSE,*.{markdown,md}}]
|
||||
@ -64,9 +73,15 @@ indent_style = tab
|
||||
indent_size = tab
|
||||
# empty last columns/fields
|
||||
trim_trailing_whitespace = false
|
||||
max_line_length =
|
||||
|
||||
# RFC 678
|
||||
#[*.txt]
|
||||
#max_line_length = 72
|
||||
|
||||
# Windows line-endings for Windows
|
||||
[*.{reg,bat,ahk}]
|
||||
# Remember the .gitattributes !
|
||||
end_of_line = crlf
|
||||
|
||||
# YAML requires spaces. The GitHub citation files look YAML to me.
|
||||
|
@ -19,3 +19,5 @@ repos:
|
||||
hooks:
|
||||
- id: editorconfig-checker
|
||||
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
|
||||
set hlsearch
|
||||
|
||||
" Red column on the right as indication on what I wish to consider as the
|
||||
" maximum length of a line.
|
||||
set colorcolumn=76
|
||||
" Keep text under 78 chars. Common Braille displays have 80, one reserved for
|
||||
" line continuation, one for diffing?
|
||||
" 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