dracut icon indicating copy to clipboard operation
dracut copied to clipboard

Drop .kateconfig from subdirectories

Open marcosfrm opened this issue 3 years ago • 3 comments

https://docs.kde.org/trunk5/en/kate/katepart/config-variables.html

Additionally, document variables can be placed in a file called .kateconfig in any directory, and the configured settings will be applied as if the modelines were entered on every file in the directory and its subdirectories.

Hence only the toplevel .kateconfig is required. src/install/.kateconfig and src/skipcpio/.kateconfig can go away.

marcosfrm avatar Aug 26 '22 13:08 marcosfrm

Hmm, config is different:

https://github.com/dracutdevs/dracut/blob/master/.kateconfig (tab-width 4; indent-width 4) https://github.com/dracutdevs/dracut/blob/master/src/install/.kateconfig (tab-width 8; indent-width 8) https://github.com/dracutdevs/dracut/blob/master/src/skipcpio/.kateconfig (tab-width 8; indent-width 8)

https://github.com/dracutdevs/dracut/blob/master/src/skipcpio/.dir-locals.el ???

marcosfrm avatar Aug 26 '22 13:08 marcosfrm

From .vimrc:


set tabstop=4
set shiftwidth=4
set expandtab
set makeprg=GCC_COLORS=\ make
set tw=79
au BufRead,BufNewFile *.xml set tw=109 shiftwidth=2 smarttab
au FileType sh set tw=80 shiftwidth=4 smarttab
au FileType c set tw=109 shiftwidth=8 tabstop=8 smarttab expandtab

So default 4, 4; but 8, 8 for C? That would actually make sense. Is it documented somewhere ?

pvalena avatar Aug 31 '22 11:08 pvalena

Not explicitly: https://github.com/dracutdevs/dracut/blob/master/docs/HACKING.md#code-format

My following commit adjusts Kate config: https://github.com/dracutdevs/dracut/pull/1959/commits/74169dc706e9310c8dc0378dffbfcb3b79b3b3cc

marcosfrm avatar Aug 31 '22 16:08 marcosfrm