emacsでバックアップファイルを作成しない

chefでレシピをemacsで編集しながらいろいろデバッグ。knifeを走らせるとこんなエラーが。

symlink has no referent: "/home/hoge/chef/site-cookbooks/piyo/recipes/.#default.rb"
IO error encountered -- skipping file deletion
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.0]
ERROR: RuntimeError: Failed to launch command ["rsync", "-rL", "--rsh=ssh hoge@tosa", "--delete-after", "--exclude=revision-deploys", "--exclude=tmp", "--exclude=.git", "--exclude=.hg", "--exclude=.svn", "--exclude=.bzr", "/home/hoge/chef/site-cookbooks/", ":~/chef-solo/cookbooks-3"]

なんかemacsのバックアップファイルがリンクになっていて、しかもそのリンク先がないということ。
chefのレシピって、recipeディレクトリ以下にあるファイル全部が対象になるみたい。
うーんどうしよう。

  • chef側でemacsが作成しそうなバックアップファイルを無視する
  • emacsでバックアップファイルを作成しない

後者を選択。邪魔である。
以下設定を.emacsへ投入。

(setq make-backup-files nil)
(setq auto-save-default nil)