help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Dired: how to mark with other character but *


From: Jean Louis
Subject: Re: Dired: how to mark with other character but *
Date: Sun, 31 Jan 2021 09:23:08 +0300
User-agent: Mutt/2.0 (3d08634) (2020-11-07)

I have solved it now by making new function based on
(dired-flag-file-deletion ARG &optional INTERACTIVE):

(defun rcd-dired-mark-view-file (arg &optional interactive)
  "In Dired, mark the current line's file for viewing.
If the region is active, mark all files in the region.
Otherwise, with a prefix arg, mark files on the next ARG lines.

If on a subdir headerline, mark all its files except `.' and `..'.
If the region is active in Transient Mark mode, mark all files
in the active region."
  (interactive (list current-prefix-arg t))
  (let ((dired-marker-char 86))
    (dired-mark arg interactive)))

(define-key dired-mode-map "\\" 'rcd-dired-mark-view-file)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]