I would like to symlink my emacs init.el into a dotfiles repo - located at ~/Documents/Dotfiles. However, when I attempt to do so the command fails even though my prompt doesn't return an error - ls -la doesn't show a link there. For example, I might do the following: ln -s ~/.emacs.d/init.el ~/Documents/Dotfiles/.emacs.d/init.elAre emacs configs - due to their being, under the covers, a directory - different in some way than other files you might want to symlink?Tl;dr Aliases are weird and although the commands work, this link doesn't show in ls -la which is not really emacs' fault.
Symlinking `init.el` in
emacs;dot files
As far as I can see, in my case this happens when the target link has directories which doesnt exist.Try this:File should exist:file /Users/Chris/.emacs.d/init.elRemove previous symbolic link if present:rm /Users/Chris/Documents/Dotfiles/.emacs.d/init.elNow create needed directories:mkdir -p /Users/Chris/Documents/Dotfiles/.emacs.d/And create symolic link:ln -s /Users/Chris/.emacs.d/init.el /Users/Chris/Documents/Dotfiles/.emacs.d/init.el