Closed jeswcollins closed 5 years ago
Maybe I didn't do enough research before I asked this question. I see that I may be able to set dired-omit-mode
to t
, e.g. as in https://www.gnu.org/software/emacs/manual/html_node/dired-x/Omitting-Variables.html, for this feature idea.
I tried the above, but my ediffs seem to not have changed.
An excerpt from my dir-locals.el
(dired-mode . (
(dired-omit-mode . t)
;;(dired-omit-files "^#\\|\\.$\\|-err")
)
)
Maybe I am implementing these dired variables incorrectly? I get the same ediff result with the dired-omit-files
commented in or out.
Emacs does recognize my dired-omit-mode
, as it asks me to confirm it and dired-omit-files
.
Ah I see also ssh-deploy-exclude-list
Seems likely that this issue can be closed, but I will try to see if I can set this variable first
I'm not sure what kind of feature you want but the ssh-deploy-exclude-list
will exclude files when doing recursive directory differences both from local and from remote host
Should I be able to add to ssh-deploy-exclude-list
from .dir-locals.el?
I tried adding
(setq list1 '("path/to/file_to_be_excluded.txt"))
(add_to_list 'ssh-deploy-exclude-list 'list1)
to .dir-locals.el, but I don't see the new string added to the variable according to C-h v ssh-deploy-exclude-list
.
I wasn't modifying my .dir-locals.el properly.
Reading this link on Directory Variables helped: https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html#Directory-Variables
The line I added was:
(ssh-deploy-exclude-list . ("path/to/file_to_exclude_1.txt" ".git/" ".dir-locals.el"))
Will close the issue.
I like working on the server for rapid UI bug fix and new feature experiments. I've generated new files on the server. I would like to keep these there, but don't want them to show up in the SSH Deploy dired ediff buffer.
Is there a preferred way to go about implementing such a feature, if it doesn't already exist?