From: Vladimir Nikishkin <lockywolf@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: How to use connection-local variables with dired?
Date: Wed, 25 Aug 2021 11:14:40 +0800 [thread overview]
Message-ID: <87pmu2b4gv.fsf@laptop.lockywolf.net> (raw)
Hello, everyone
My problem is the following:
I generally use dired to manage files, with `dired-listing-switches` set
to "-lahD". This "-D" is GNU-specific, and while it makes dired work
consistently, there is no "-D" option on non-GNU machines, which I also
have a few.
I would like to tell dired to use the switches without "-D" when
connecting to the non-GNU machines, but I have not found a way to do so.
E.g.:
#+begin_src: elisp
(connection-local-set-profile-variables 'remote-ksh
'((shell-file-name . "/bin/ksh")
(shell-command-switch . "-c")
(dired-listing-switches . "-lah")))
(connection-local-set-profiles
'(:application tramp
:machine "bsd-machine.example"
:protocol "ssh")
'remote-ksh) ; works
(connection-local-set-profiles
'(
:application dired
:machine "bsd-machine.example"
)
'remote-ksh) ; broken
#+end_src
The variables are, indeed, set correctly in the
*tramp/bsd-machine.example* buffer, but not in the dired buffer, hence
dired does not work.
Is there some way to achieve what I want?
Thanks everyone for help.
--
Your sincerely,
Vladimir Nikishkin (MiEr, lockywolf)
(Laptop)
next reply other threads:[~2021-08-25 3:14 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-08-25 3:14 Vladimir Nikishkin [this message]
2021-08-25 7:51 ` How to use connection-local variables with dired? Michael Albinus
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pmu2b4gv.fsf@laptop.lockywolf.net \
--to=lockywolf@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.