From dbb907698c36e449a2cab3cfc9747b40b7ae1cce Mon Sep 17 00:00:00 2001 From: James Cherti <60946298+jamescherti@users.noreply.github.com> Date: Tue, 6 Aug 2024 10:56:42 -0400 Subject: [PATCH] Add more settings for files --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index 61ee5df..8750244 100644 --- a/init.el +++ b/init.el @@ -62,6 +62,17 @@ ;; switch-to-buffer runs pop-to-buffer-same-window instead (setq switch-to-buffer-obey-display-actions t) +;;; Files + +;; Disable the warning "X and Y are the same file". Ignoring this warning is +;; acceptable since it will redirect you to the existing buffer regardless. +(setq find-file-suppress-same-file-warnings t) + +;; Resolve symlinks when opening files, so that any operations are conducted +;; from the file's true directory (like `find-file'). +(setq find-file-visit-truename t + vc-follow-symlinks t) + ;;; Backup files ;; Avoid generating backups or lockfiles to prevent creating world-readable