aboutsummaryrefslogtreecommitdiffstats
path: root/.dir-locals.el
Commit message (Collapse)AuthorAgeFilesLines
* Import .dir-locals.el from Guix.Denis 'GNUtoo' Carikli2025-06-151-0/+238
When opening a file in this repository with Emacs, Emacs will prompt something like that: The local variables list in <path/to/haunt-blog/directory> or .dir-locals.el contains values that may not be safe (*). Do you want to apply it? You can type y -- to apply the local variables list. [...] If 'y' is selected, Emacs will then use settings from that file that help formatting scheme files correctly for inclusion in GNU Guix. Since this repository use Guile and scheme, it makes sense to use a given a specific formatting for scheme files. Other projects than Guix also have similar files (for instance Guile), though the Guix file has well documented copyrights and Guix also have a 'guix style' command that can be used to reformat files which shows that Guix does really care about formatting, so it looks a good package to reuse the .dir-locals.el from. Note that Emacs also asks the same question for non-scheme files but so far I didn't find any problematic behavior with other files. .dir-locals.el was imported from the Guix commit db523cfaa834ac9778f436e7f94647508733c0a1 ("dir-locals: Add copyrights."), so the Copyrights were also verified upstream during the review of the db523cfaa834ac9778f436e7f94647508733c0a1 patch. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>