repo: add editorconfig && format

This commit is contained in:
Guanran Wang 2024-02-15 14:21:59 +08:00
parent 9fe34a4377
commit 9f9fe8cb8f
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8
8 changed files with 31 additions and 10 deletions

21
.editorconfig Normal file
View file

@ -0,0 +1,21 @@
# EditorConfig is awesome: https://EditorConfig.org
# top-most EditorConfig file
root = true
[*]
charset = utf-8
end_of_line = lf
insert_final_newline = true
trim_trailing_whitespace = true
# Ignore diffs/patches
[*.{diff,patch}]
end_of_line = unset
insert_final_newline = unset
trim_trailing_whitespace = unset
# Nix
[*.nix]
indent_size = 2
indent_style = space

2
.gitignore vendored
View file

@ -1,2 +1,2 @@
result result
.DS_Store .DS_Store

View file

@ -61,10 +61,10 @@
# start some nice programs # start some nice programs
if [ -d /etc/X11/xinit/xinitrc.d ] ; then if [ -d /etc/X11/xinit/xinitrc.d ] ; then
for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do for f in /etc/X11/xinit/xinitrc.d/?*.sh ; do
[ -x "$f" ] && . "$f" [ -x "$f" ] && . "$f"
done done
unset f unset f
fi fi
# https://wiki.archlinux.org/title/Cursor_themes#Change_X_shaped_default_cursor # https://wiki.archlinux.org/title/Cursor_themes#Change_X_shaped_default_cursor

View file

@ -1,4 +1,4 @@
* { * {
bg: #16161e; bg: #16161e;
fg: #6a6f87; fg: #6a6f87;
} }

View file

@ -127,4 +127,4 @@ element.alternate.urgent {
element.alternate.active { element.alternate.active {
background-color: transparent; background-color: transparent;
text-color: @fg; text-color: @fg;
} }

View file

@ -42,4 +42,4 @@
</prefer> </prefer>
</alias> </alias>
</fontconfig> </fontconfig>

View file

@ -20,4 +20,4 @@
<edit name="family" binding="same" mode="assign"><string>monospace</string></edit> <edit name="family" binding="same" mode="assign"><string>monospace</string></edit>
</match> </match>
</fontconfig> </fontconfig>

View file

@ -25,4 +25,4 @@
<edit name="family" binding="same" mode="assign"><string>serif</string></edit> <edit name="family" binding="same" mode="assign"><string>serif</string></edit>
</match> </match>
</fontconfig> </fontconfig>