files.el 756 B

12345678910111213141516171819202122
  1. ;; Mounted files from a host namespace cannot be renamed.
  2. (setq backup-by-copying t)
  3. (mapc (lambda (lst)
  4. (add-to-list 'auto-mode-alist lst))
  5. '(("PKGBUILD" . shell-script-mode)
  6. ("\\.conkerorrc" . js-mode)
  7. ("\\.guile" . scheme-mode)
  8. ("\\.mbsyncrc" . conf-mode)
  9. ("manifest\\.scm" . scheme-mode)
  10. ("\\.tfstate" . json-mode)
  11. ("bashrc" . sh-mode)
  12. ("kresd\\.conf" . lua-mode)
  13. ("\\.luadoc" . lua-mode)
  14. ("\\.drv" . guix-derivation-mode)
  15. (".ansible-hosts" . yaml-mode)
  16. ("\\.bats" . sh-mode)))
  17. ;; Encrypted Chezmoi files with names like encrypted_example
  18. (add-to-list 'file-name-handler-alist
  19. `(,(rx (and "encrypted_" (+ alnum))) . epa-file-handler))