Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [symbolic-links]

Following or manipulating symbolic links in the underlying file system.

Filter by
Sorted by
Tagged with
0 votes
1 answer
52 views

How to make a symbolic link pointing to a directory?

I'm trying to make a symbolic link to a directory, but the resulting link is always broken. For example, (make-symbolic-link user-emacs-directory "test" t) The first argument is TARGET, ...
GrB's user avatar
  • 217
0 votes
0 answers
56 views

Follow symbolic links in alternative org-roam directory

I use org-roam to take notes. I have two org-roam directories. The alternative one has a .dir-locals.el file where I set the value of org-roam-directory and org-roam-db-location with the path to the ...
NandKN's user avatar
  • 73
0 votes
1 answer
99 views

prevent symbolic link follow from git repo HOWTO

I have git repo here: ~/git/myrepo/ then I do: ln -s ~/external_dir ~/git/myrepo emacs follows symbolic link when opening the file: ~/git/myrepo/external_dir/somefile.txt I'd like to prevent it, ...
vibrys's user avatar
  • 21
2 votes
1 answer
478 views

How to show current directory in Dired with symlinks resolved

I have ~/bin -> ~/some/long/path/bin. When I open ~/bin in Dired, it tells me at the top that it is looking at /Users/username/bin, i.e. it expands '~' in the current directory printed on the ...
spepo's user avatar
  • 21
0 votes
1 answer
133 views

Emacs completion through symlink (OSX)

I have a symlink on my Desktop that points to my Dropbox folder. Clicking on this link takes me through to Dropbox, which is located elsewhere. But if I try navigating to ~/Desktop/Dropbox using Emacs,...
Adam's user avatar
  • 1,897
1 vote
0 answers
46 views

Can Dired (or Dired+) detect symlinks in Windows?

Can Dired(+) be made to show symlinks in Windows? A picture is worth a thousand words:
kotchwane's user avatar
  • 515
1 vote
1 answer
77 views

Is there a way to highlight symlinks in the speedbar?

I would like files in the speedbar that are symlinks, to be highlighted, or at least marked with @ so that they are easily distinguishable.
Don's user avatar
  • 113
0 votes
1 answer
467 views

Treat symbolic-link as separate files while visiting

Is there a way to make Emacs visit already visited file(with active buffer) via symbolic-link as a different file? I want them(links/file paths) to be visited by different buffers. It will be best if ...
JAre's user avatar
  • 185
7 votes
1 answer
2k views

Follow symlinked directories in Dired

On a Linux machine I symlink some directories into my home directory like this: /home/mrdarcy: total used in directory 231 available 520120 drwxrwxr-x 3 4k 04-30 18:16 bin drwxr-xr-x 2 4k ...
halloleo's user avatar
  • 1,345
2 votes
1 answer
160 views

What are the '.#' links for? [duplicate]

When an Emacs buffer is modified, a broken link is created. The link's name is a concatenation of '.#' followed by the file's name. For example: $ ls .#spacemacs_ref.org -l lrwxrwxrwx. 1 wolfv wolfv ...
wolfv's user avatar
  • 1,393
0 votes
1 answer
71 views

.emacs linked to emacs.link,open emacs.link in emacs-lisp mode

Say I have a symbolic link .emacs link to emacs.link,so when I open emacs.link,the associated buffer's major mode is Fundamental mode. I want emacs.link's major mode Emacs-Lisp. Another example is: ...
Vacker's user avatar
  • 11
0 votes
2 answers
359 views

Hide symlink destination in ls-lisp output?

By default Emacs' ls-lisp shows the symlink destination in its output like this: /tmp: total used in directory 2 available 12933091 lrwxr-xr-x 40 02-07 16:12 foo -> bar -rw-r--r-- 0 03-06 14:45 ...
Make Mark's user avatar
  • 151
1 vote
0 answers
151 views

Mac OS X problem accessing file via symlink

GNU Emacs 24 on El Capitan. When opening a file whose path includes a directory which is a symlink, Emacs emits the following error: *ERROR*: Wrong type argument: numberp, "Bus error: 10" If I ...
Daniel's user avatar
  • 196
1 vote
1 answer
555 views

Hard and soft links (junctions) under Windows

Let us assume to run the following commands creating links in the Windows prompt (terminal): > mkdir fooDir > echo hello> fooDir\foo > mklink /d fooDirSym fooDir > mklink /j fooDirJunc ...
antonio's user avatar
  • 1,822
4 votes
2 answers
1k views

How to make vc-* and magit treat a symbolic link to a real file in git repo just like the original file?

Say, I got ~/.emacs which is a soft link to ~/.emacs.d/init.el(using ln -s ~/.emacs.d/init.el ~/.emacs) which is in a git repo, because this will make it easier to reach init.el, outside or inside ...
CodyChan's user avatar
  • 2,649
6 votes
2 answers
702 views

Stop dired opening second window of already open directory

When I open a directory using dired and there is already the same directory opened in dired, a second one is opened with <2>. How can I inhibit this creation of the duplicate window and switch ...
Rainer's user avatar
  • 907