Add .dir-locals.el emacs config file #16

Open
Sara wants to merge 3 commits from feat/dir-locals.el into development
3 changed files with 11 additions and 2 deletions

4
.dir-locals.el Normal file
View file

@ -0,0 +1,4 @@
((c-mode . ((mode . c++)))
(c++-mode . ((mode . clang-format-on-save)))
(nil . ((projectile-project-compilation-cmd . "just build")
(projectile-project-run-cmd . "engine/bin/godot.linuxbsd.editor.dev.x86_64.llvm"))))

6
.gitignore vendored
View file

@ -6,9 +6,15 @@
config.log
.sconf_temp
# build artifacts
*.o
compile_commands.json
engine/.github
project/.godot
build/PROJECT.pck
build/PROJECT.x86_64
build/PROJECT.exe
build.zip
# general-purpose cache folder (used by e.g clangd)
.cache

View file

@ -37,9 +37,8 @@ release-windows: build
initialize-template projectname:
# Initializing Template {{projectname}}
sed -i -e "s/PROJECT/{{projectname}}/g" ./modules/PROJECT/register_types.h ./modules/PROJECT/register_types.cpp ./project/project.godot ./project/export_presets.cfg .gitignore
sed "s/change_me/{{projectname}}/" ./justfile
sed -i -e "s/change_me/{{projectname}}/" ./justfile
mv ./modules/PROJECT ./modules/{{projectname}}
# Done Initializing, you will still have to update BUILD_NAME in your justfile
format:
# Formatting Custom Modules