* dired commands/vars i can't find
@ 2023-01-11 5:58 Samuel Wales
2023-01-11 6:48 ` Samuel Wales
` (2 more replies)
0 siblings, 3 replies; 7+ messages in thread
From: Samuel Wales @ 2023-01-11 5:58 UTC (permalink / raw)
To: help-gnu-emacs
i can't seem to find a few things i want in dired that probably exist.
1. suppose you run dired fro a file. i beierve there is a setting
that will put point on that file's line insted of at top. whatis it?
2. also, i i clutter buffer space with dired dirs. i thini you are
supposed to use a instead of ret when you vist from dired.
is there a dired-up-directory equivalent of this? that is, i want a
version of dired-up-directory that reuse the current buffer.
thank you. please to: me if you can. or perhaps cc: will work as
well, idk. [of course it is ok to include the mailing list.]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 5:58 dired commands/vars i can't find Samuel Wales
@ 2023-01-11 6:48 ` Samuel Wales
2023-01-11 7:57 ` Jean Louis
2023-01-11 13:17 ` Filipp Gunbin
2 siblings, 0 replies; 7+ messages in thread
From: Samuel Wales @ 2023-01-11 6:48 UTC (permalink / raw)
To: help-gnu-emacs
well it seems i found a function that does 2. i wrote it long ago.
idk if it works. or in all cases, but i have it.
(defun alpha-dired-up-alternate ()
(interactive)
(let* ((dir (dired-current-directory))
(up (file-name-directory (directory-file-name dir))))
(find-alternate-file up)))
and i had it bound, even. up to ' and alternate to shift-'.
so probably all i need is 1.
On 1/10/23, Samuel Wales <samologist@gmail.com> wrote:
> i can't seem to find a few things i want in dired that probably exist.
>
>
> 1. suppose you run dired fro a file. i beierve there is a setting
> that will put point on that file's line insted of at top. whatis it?
>
> 2. also, i i clutter buffer space with dired dirs. i thini you are
> supposed to use a instead of ret when you vist from dired.
> is there a dired-up-directory equivalent of this? that is, i want a
> version of dired-up-directory that reuse the current buffer.
>
> thank you. please to: me if you can. or perhaps cc: will work as
> well, idk. [of course it is ok to include the mailing list.]
>
--
The Kafka Pandemic
A blog about science, health, human rights, and misopathy:
https://thekafkapandemic.blogspot.com
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 5:58 dired commands/vars i can't find Samuel Wales
2023-01-11 6:48 ` Samuel Wales
@ 2023-01-11 7:57 ` Jean Louis
2023-01-11 8:15 ` Yuri Khan
2023-01-11 13:17 ` Filipp Gunbin
2 siblings, 1 reply; 7+ messages in thread
From: Jean Louis @ 2023-01-11 7:57 UTC (permalink / raw)
To: Samuel Wales, help-gnu-emacs
On January 11, 2023 8:58:11 AM GMT+03:00, Samuel Wales <samologist@gmail.com> wrote:
>1. suppose you run dired fro a file. i beierve there is a setting
>that will put point on that file's line insted of at top. whatis it?
(defun rcd-dired-for-file ()
(interactive)
(let ((file (or (buffer-file-name)
default-directory)))
(dired-jump nil file)))
Jean
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 7:57 ` Jean Louis
@ 2023-01-11 8:15 ` Yuri Khan
2023-01-11 19:09 ` H. Dieter Wilhelm
2023-01-12 6:59 ` Jean Louis
0 siblings, 2 replies; 7+ messages in thread
From: Yuri Khan @ 2023-01-11 8:15 UTC (permalink / raw)
To: Jean Louis; +Cc: Samuel Wales, help-gnu-emacs
On Wed, 11 Jan 2023 at 14:59, Jean Louis <bugs@gnu.support> wrote:
> >1. suppose you run dired fro a file. i beierve there is a setting
> >that will put point on that file's line insted of at top. whatis it?
>
> (defun rcd-dired-for-file ()
> (interactive)
> (let ((file (or (buffer-file-name)
> default-directory)))
> (dired-jump nil file)))
I’m just using dired-jump. Most of the time, it does the right thing.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 5:58 dired commands/vars i can't find Samuel Wales
2023-01-11 6:48 ` Samuel Wales
2023-01-11 7:57 ` Jean Louis
@ 2023-01-11 13:17 ` Filipp Gunbin
2 siblings, 0 replies; 7+ messages in thread
From: Filipp Gunbin @ 2023-01-11 13:17 UTC (permalink / raw)
To: Samuel Wales; +Cc: help-gnu-emacs
Hi,
On 10/01/2023 22:58 -0700, Samuel Wales wrote:
> 2. also, i i clutter buffer space with dired dirs. i thini you are
> supposed to use a instead of ret when you vist from dired.
> is there a dired-up-directory equivalent of this? that is, i want a
> version of dired-up-directory that reuse the current buffer.
There's dired-kill-when-opening-new-dired-buffer, but it's wider than
you request.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 8:15 ` Yuri Khan
@ 2023-01-11 19:09 ` H. Dieter Wilhelm
2023-01-12 6:59 ` Jean Louis
1 sibling, 0 replies; 7+ messages in thread
From: H. Dieter Wilhelm @ 2023-01-11 19:09 UTC (permalink / raw)
To: Yuri Khan; +Cc: Jean Louis, Samuel Wales, help-gnu-emacs
Yuri Khan <yuri.v.khan@gmail.com> writes:
> On Wed, 11 Jan 2023 at 14:59, Jean Louis <bugs@gnu.support> wrote:
> I’m just using dired-jump. Most of the time, it does the right thing.
Yes, C-x C-j. Formerly it was "hidden" in dired-x but since some recent
Emacs versions it's thankfully in dired.el. :-)
--
Best wishes
H. Dieter Wilhelm
Zwingenberg, Germany
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: dired commands/vars i can't find
2023-01-11 8:15 ` Yuri Khan
2023-01-11 19:09 ` H. Dieter Wilhelm
@ 2023-01-12 6:59 ` Jean Louis
1 sibling, 0 replies; 7+ messages in thread
From: Jean Louis @ 2023-01-12 6:59 UTC (permalink / raw)
To: Yuri Khan; +Cc: Samuel Wales, help-gnu-emacs
* Yuri Khan <yuri.v.khan@gmail.com> [2023-01-11 11:16]:
> On Wed, 11 Jan 2023 at 14:59, Jean Louis <bugs@gnu.support> wrote:
>
> > >1. suppose you run dired fro a file. i beierve there is a setting
> > >that will put point on that file's line insted of at top. whatis it?
> >
> > (defun rcd-dired-for-file ()
> > (interactive)
> > (let ((file (or (buffer-file-name)
> > default-directory)))
> > (dired-jump nil file)))
>
> I’m just using dired-jump. Most of the time, it does the right
> thing.
That is right, I did not know.
--
Jean
Take action in Free Software Foundation campaigns:
https://www.fsf.org/campaigns
In support of Richard M. Stallman
https://stallmansupport.org/
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2023-01-12 6:59 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-01-11 5:58 dired commands/vars i can't find Samuel Wales
2023-01-11 6:48 ` Samuel Wales
2023-01-11 7:57 ` Jean Louis
2023-01-11 8:15 ` Yuri Khan
2023-01-11 19:09 ` H. Dieter Wilhelm
2023-01-12 6:59 ` Jean Louis
2023-01-11 13:17 ` Filipp Gunbin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).