From: Neon Absentius <absent@sdf.lonestar.org>
Subject: Re: change of variable name in 21.4
Date: Sat, 3 Sep 2005 12:03:38 +0000 [thread overview]
Message-ID: <20050903120338.GE14524@SDF.LONESTAR.ORG> (raw)
In-Reply-To: <87k6hy37ew.fsf@wash.edu>
On Sat, Sep 03, 2005 at 06:03:03PM +1000, Baloff wrote:
> Hello
>
> I have been trying to find the name of the variable to change file
> association with an application. according to the book I am reading
> it is called Dired-view-command-alist. but not in emacs 21.4a-1 under
> Debian. does any one know what the name of the variable is.
> I tried C-h [a to z] for no avail.
>
,----[ C-h v dired-guess-shell-alist-user RET ]
| dired-guess-shell-alist-user's value is shown below.
|
| Documentation:
| User-defined alist of rules for suggested commands.
| These rules take precedence over the predefined rules in the variable
| `dired-guess-shell-alist-default' (to which they are prepended).
|
| Each element of this list looks like
|
| (REGEXP COMMAND...)
|
| where each COMMAND can either be a string or a lisp expression that evaluates
| to a string. If several COMMANDs are given, the first one will be the default
| and the rest will be added temporarily to the history and can be retrieved
| with M-x previous-history-element (M-p) .
|
| You can set this variable in your ~/.emacs. For example, to add rules for
| `.foo' and `.bar' files, write
|
| (setq dired-guess-shell-alist-user
| (list (list "\\.foo\\'" "FOO-COMMAND");; fixed rule
| ;; possibly more rules ...
| (list "\\.bar\'";; rule with condition test
| '(if condition
| "BAR-COMMAND-1"
| "BAR-COMMAND-2"))))
|
| You can customize this variable.
|
| Defined in `dired-x'.
|
| Value:
| (("\\.pdf$" "xpdf * &")
| ("\\.pdf\\.gz$" "zxpdf * &")
| ("\\.dvi$" "xdvi * &")
| ("\\.ps$" "gv --spartan * &")
| ("\\.eps$" "gv --spartan * &")
| ("\\.ps\\.gz$" "gv --spartan * &")
| ("\\.rtf$" "ted * &")
| ("\\.jpeg$" "display * &")
| ("\\.jpg$" "display * &")
| ("\\.gif$" "display * &")
| ("\\.png$" "display * &"))
`----
> thanks
>
> > LocalWords: Dired alist
--
Most precious among the relics remaining of Peter's skeleton in the
Vatican are 29 fragments of one of his skulls. (St. Peter's other
skull is preserved in a reliquary at the Cathedral of St. John
Lateran.)
-- Frank R. Zindler, "Of Bones and Boners"
next prev parent reply other threads:[~2005-09-03 12:03 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-09-03 8:03 change of variable name in 21.4 Baloff
2005-09-03 8:15 ` Tim X
2005-09-03 12:03 ` Neon Absentius [this message]
[not found] ` <mailman.5837.1125750118.20277.help-gnu-emacs@gnu.org>
2005-09-03 23:22 ` Baloff
2005-09-04 0:32 ` Neon Absentius
2005-09-04 4:58 ` Tim X
[not found] ` <mailman.5869.1125795282.20277.help-gnu-emacs@gnu.org>
2005-09-04 10:20 ` Baloff
2005-09-04 11:33 ` Neon Absentius
[not found] ` <mailman.5879.1125834869.20277.help-gnu-emacs@gnu.org>
2005-09-05 9:10 ` Baloff
2005-09-05 13:33 ` Josh Staiger
2005-09-05 16:18 ` Neon Absentius
[not found] ` <mailman.5959.1125937411.20277.help-gnu-emacs@gnu.org>
2005-09-05 19:40 ` Baloff
2005-09-05 19:27 ` Neon Absentius
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050903120338.GE14524@SDF.LONESTAR.ORG \
--to=absent@sdf.lonestar.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.
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).