Книга: Learning GNU Emacs, 3rd Edition

5.2.6.2 Selecting likely candidates for deletion

5.2.6.2 Selecting likely candidates for deletion

Marking files sequentially is simple but, in all honesty, it's not very powerful. Emacs provides commands for selecting types of files that you often want to get rid of when you're cleaning up a directory: backup files, auto-save files, and so-called garbage files.

Auto-save files are created when a session terminates abnormally; they have the format #filename#. Backup files which Emacs creates periodically, have the format filename~. To mark these files in Dired, type # or ~ respectively.

Emacs also has an option that automatically selects "garbage" files. By default, this includes files with the following extensions: .log, .toc, .dvi, .bak, .orig, and .rej. Garbage files are defined by a regular expression, which is contained in the variable dired-garbage-files-regexp; you can change the value of this variable to define garbage files as you see fit (after all, one man's junk is another man's treasure).

Оглавление книги


Генерация: 1.900. Запросов К БД/Cache: 3 / 1
поделиться
Вверх Вниз