all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Thamer Mahmoud <thamer.mahmoud@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Re: Emacs improvements
Date: Thu, 06 Jan 2011 22:40:57 +0300	[thread overview]
Message-ID: <87wrmhakhi.fsf@zemblan.newkuwait.org> (raw)
In-Reply-To: AANLkTi=oqbnqs=8PYPhMeK6C-etsF3c+XYrJ6mwMjPv3@mail.gmail.com

Davin Pearson <davin.pearson@gmail.com> writes:

> Different files appear in different colours (e.g. folders appear in
> blue, *.png appears lightmagenta, *.c appears in bold and HTML
> documents appear with a yellow background.  Text documents and
> fundamental mode documents appear with no decoration at all.
>

I have recently written a package to achieve just that. It's called
Diredful. Get it from here:

http://www.emacswiki.org/emacs/Diredful

> Pressing return on certain files such as images runs cygstart to
> launch that an appropriate program much like Windows Explorer.
>

I use a combination of dired-guess-shell-alist-user and mailcap.el (on
Linux). Something like this:

(setq dired-guess-shell-alist-user
      (list
       ;; mailcap.el doesn't support double extensions?
       (list "\\.pdf.gz" "run-mailcap *")
       (list "\\.png" "xloadimage *")))

Then running dired-do-shell-command on a file will give you a useful
list of commands to run. This works for me, although mailcap.el doesn't
seamlessly integrate with dired-guess-*, and the mailcap format isn't
very friendly.

HTH

-- 
Thamer




  parent reply	other threads:[~2011-01-06 19:40 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-05  3:27 Emacs improvements Davin Pearson
2011-01-05 21:37 ` Deniz Dogan
2011-01-08 23:04   ` Davin Pearson
2011-01-09 17:59     ` Tassilo Horn
2011-01-06  9:02 ` Bastien
2011-01-08 23:05   ` Davin Pearson
2011-01-06 19:40 ` Thamer Mahmoud [this message]
2011-01-06 22:32 ` Drew Adams
     [not found] <mailman.8.1294261844.13904.help-gnu-emacs@gnu.org>
2011-01-06  0:07 ` Tim X
2011-01-06 14:39 ` Jay Belanger

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=87wrmhakhi.fsf@zemblan.newkuwait.org \
    --to=thamer.mahmoud@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.