11
11

More than 5 years have passed since last update.

emacsでゴミ箱を使う

Posted at

下記を設定すると、delete-filedelete-directoryで削除したファイルやフォルダは削除されずに~/.Trashに移動します。これはDiredでの削除にも設定が反映されます。

(custom-set-variables
 '(delete-by-moving-to-trash t)
 '(trash-directory "~/.Trash"))

これでうっかり削除しても安心です。
Emacs 23.1からの機能なのに、ついさっき知りました。

11
11
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
11