2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

シンボリックリンクを開くと recentf に同じファイルが複数記録される問題を解決する

Last updated at Posted at 2013-07-11

デフォルトの Emacs では、 find-file でシンボリックと元のファイルの両方を開くと、そのどちらも記録されてしまいます。

この問題は以下のコードを .emacs に記述することで解決します。

(setq-default find-file-visit-truename t)

これにより、シンボリックリンクを開いてもリンク元のファイルのパスで開かれるため、シンボリックリンクのパスが recentf に登録されるのを防ぐことができます。

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?