[Top][All Lists]

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

Re: backup dired marks

From: Juanma Barranquero
Subject: Re: backup dired marks
Date: Thu, 21 Feb 2002 18:49:49 +0100

> In the effort to protect the user from losing any of his work, some
> optional warning upon quitting emacs, or even keeping a #backup# might
> be offered, for someone who has made a lot of intricate marks in a
> dired buffer.

Other than having in your .emacs something like that?

(defun protect-dired-buffer ()
  "Ask before exiting Emacs to protect dired buffers."
      (or (not (buffer-modified-p))
          (y-or-n-p (format "Dired buffer %s modified, do you want to exit " 
    (message nil)))

(add-hook 'dired-mode-hook
          #'(lambda ()
              (add-hook 'kill-emacs-query-functions


reply via email to

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