The dir-config.el Emacs package automatically loads and evaluates Elisp code from a .dir-config.el file found in the buffer’s current directory or its closest parent directory. This enables Emacs to adjust settings or execute functions specific to the directory structure of each buffer.
For instance, you can use the dir-config package to:
InstallationTo install the dir-config using straight.el:
(use-package dir-config :ensure t :straight (dir-config :type git :host github :repo "jamescherti/dir-config.el") :custom (dir-config-file-names '(".dir-config.el")) (dir-config-allowed-directories '("~/src" "~/projects")) :config (global-dir-config-mode))
More information about dir-config.el* More information (usage, frequently asked questions, etc.): dir-config.el @GitHub