From 2193ef37792ba16f3ce14367522c8c5c871f21ef Mon Sep 17 00:00:00 2001 From: Madeleine Sydney Date: Thu, 16 Jan 2025 13:04:43 -0700 Subject: [PATCH] feat: Follow VC'd symlinks w/o confirmation --- users/crumb/programs/emacs/modules/syd-ui.el | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/users/crumb/programs/emacs/modules/syd-ui.el b/users/crumb/programs/emacs/modules/syd-ui.el index c6c0959..c6eeea8 100644 --- a/users/crumb/programs/emacs/modules/syd-ui.el +++ b/users/crumb/programs/emacs/modules/syd-ui.el @@ -10,6 +10,12 @@ :hook ((prog-mode-hook . display-line-numbers-mode)) :custom ((display-line-numbers-type 'relative) ;; Always ask "y/n"; never "yes/no". - (use-short-answers t))) + (use-short-answers t) + ;; The default value is `ask', meaning that Emacs will ask for + ;; confirmation any time you follow a symlink to a file under version + ;; control. The documentation claims this is "dangerous, and + ;; probably not what you want;" I personally don't see it, and it's + ;; usually what I want. + (vc-follow-link t))) (provide 'syd-ui)