Add more settings for files

This commit is contained in:
James Cherti
2024-08-06 10:56:42 -04:00
parent 66bb650611
commit dbb907698c

11
init.el
View File

@@ -62,6 +62,17 @@
;; switch-to-buffer runs pop-to-buffer-same-window instead ;; switch-to-buffer runs pop-to-buffer-same-window instead
(setq switch-to-buffer-obey-display-actions t) (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 ;;; Backup files
;; Avoid generating backups or lockfiles to prevent creating world-readable ;; Avoid generating backups or lockfiles to prevent creating world-readable