dots

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit cd33b468f0af0b0a69cfc7afd189b66fac044e3f
parent a736dcbb42783acb591eaf356450b4a88e0c0db0
Author: Gabriel G. de Brito <me@gboncoffee.dev.br>
Date:   Mon, 23 Mar 2026 18:46:16 -0300

Avoid setting the buffer-local default-directory.

Diffstat:
Memacs/config.org | 9+++++++++
1 file changed, 9 insertions(+), 0 deletions(-)

diff --git a/emacs/config.org b/emacs/config.org @@ -239,6 +239,15 @@ configuration from a ~.emacs.el~ file there if it exists, and opens dired. (global-set-key (kbd "C-c o") #'open-dir) #+END_SRC +This makes so Emacs makes the buffer-local working directory actually the +directory we choose instead of the buffer base directory. + +#+BEGIN_SRC emacs-lisp +(add-hook 'find-file-hook + (lambda () (setq default-directory + (default-value 'default-directory)))) +#+END_SRC + *** Electric Electric, auto-fill and selection deletion.