.emacs-my
changeset 512 416623895658
parent 508 79bcafd3d45f
parent 511 d1889d3244be
child 513 b12a3b6147f5
equal deleted inserted replaced
510:1779f42a2b2b 512:416623895658
   507   ;; Enable 'a' command.
   507   ;; Enable 'a' command.
   508   (put 'dired-find-alternate-file 'disabled nil)
   508   (put 'dired-find-alternate-file 'disabled nil)
   509   )
   509   )
   510 
   510 
   511 (defun my-file-name-tmp-p (file)
   511 (defun my-file-name-tmp-p (file)
   512   (string-match "\\(^#.*#\\|~\\|\\.orig\\|\\.log\\)\\'" (file-name-nondirectory file)))
   512   (string-match "\\(^#.*#\\|~\\|\\.orig\\|\\.log\\|^.?\\.diff\\)\\'" (file-name-nondirectory file)))
   513 
   513 
   514 (defun my-dired-flag-tmp-files ()
   514 (defun my-dired-flag-tmp-files ()
   515   "Flag all temporary files for deletion."
   515   "Flag all temporary files for deletion."
   516   (interactive)
   516   (interactive)
   517   (dired-mark-if
   517   (dired-mark-if