11
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

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
12
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
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?