Trying to set custom variables in the .dir-local.el file instead of init.el or config.el.
Steps:
- Create dir test
- Initiate test dir with
git init
- Add remote git url
- Create
.dir-local.el file
- add
git-auto-commit-mode custom variables:
((nil . ((eval git-auto-commit-mode 1)
(gac-automatically-push-p . t)
(gac-automatically-add-new-files-p . t))))
- Create files with text inside
After the steps above I expect all files to be staged and committed to git, but that doesn't happen.
My system: macOS 10.14.6 with default Doom emacs config