Emacs and symbolic links

后端 未结 4 880
忘掉有多难
忘掉有多难 2021-01-31 07:44

Say I have a symbolic link at /home/.bashrc that points to an actual .bashrc file somewhere else: /some/other/path/.bashrc that is under a git reposito

4条回答
  •  猫巷女王i
    2021-01-31 08:04

    When it prompts with

    Symbolic link to Git-controlled source file; follow link? (y or n)
    

    type n. Instead of following the symlink and directly opening the file that the symlink points to, emacs will use the symlink itself, as you desire.

    A warning: doing this prevents emacs' version control features from detecting and interacting with the repository at the destination, if there is one.

    If you'd like to change the default behaviour, check out the documentation of the vc-follow-symlinks customization variable. (C-h v vc-follow-symlinks)

提交回复
热议问题