.dir-locals.el 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119
  1. ;; Per-directory local variables for GNU Emacs 23 and later.
  2. ((nil
  3. . ((fill-column . 78)
  4. (tab-width . 8)
  5. (sentence-end-double-space . t)
  6. ;; For use with 'bug-reference-prog-mode'.
  7. (bug-reference-url-format . "http://bugs.gnu.org/%s")
  8. (bug-reference-bug-regexp
  9. . "<https?://\\(debbugs\\|bugs\\)\\.gnu\\.org/\\([0-9]+\\)>")))
  10. (c-mode . ((c-file-style . "gnu")))
  11. (scheme-mode
  12. .
  13. ((indent-tabs-mode . nil)
  14. (eval . (put 'eval-when 'scheme-indent-function 1))
  15. (eval . (put 'call-with-prompt 'scheme-indent-function 1))
  16. (eval . (put 'test-assert 'scheme-indent-function 1))
  17. (eval . (put 'test-assertm 'scheme-indent-function 1))
  18. (eval . (put 'test-equalm 'scheme-indent-function 1))
  19. (eval . (put 'test-equal 'scheme-indent-function 1))
  20. (eval . (put 'test-eq 'scheme-indent-function 1))
  21. (eval . (put 'call-with-input-string 'scheme-indent-function 1))
  22. (eval . (put 'guard 'scheme-indent-function 1))
  23. (eval . (put 'lambda* 'scheme-indent-function 1))
  24. (eval . (put 'substitute* 'scheme-indent-function 1))
  25. (eval . (put 'match-record 'scheme-indent-function 2))
  26. ;; 'modify-phases' and its keywords.
  27. (eval . (put 'modify-phases 'scheme-indent-function 1))
  28. (eval . (put 'replace 'scheme-indent-function 1))
  29. (eval . (put 'add-before 'scheme-indent-function 2))
  30. (eval . (put 'add-after 'scheme-indent-function 2))
  31. (eval . (put 'modify-services 'scheme-indent-function 1))
  32. (eval . (put 'with-directory-excursion 'scheme-indent-function 1))
  33. (eval . (put 'with-file-lock 'scheme-indent-function 1))
  34. (eval . (put 'with-file-lock/no-wait 'scheme-indent-function 1))
  35. (eval . (put 'with-profile-lock 'scheme-indent-function 1))
  36. (eval . (put 'with-writable-file 'scheme-indent-function 2))
  37. (eval . (put 'package 'scheme-indent-function 0))
  38. (eval . (put 'package/inherit 'scheme-indent-function 1))
  39. (eval . (put 'origin 'scheme-indent-function 0))
  40. (eval . (put 'build-system 'scheme-indent-function 0))
  41. (eval . (put 'bag 'scheme-indent-function 0))
  42. (eval . (put 'graft 'scheme-indent-function 0))
  43. (eval . (put 'operating-system 'scheme-indent-function 0))
  44. (eval . (put 'file-system 'scheme-indent-function 0))
  45. (eval . (put 'manifest-entry 'scheme-indent-function 0))
  46. (eval . (put 'manifest-pattern 'scheme-indent-function 0))
  47. (eval . (put 'substitute-keyword-arguments 'scheme-indent-function 1))
  48. (eval . (put 'with-store 'scheme-indent-function 1))
  49. (eval . (put 'with-external-store 'scheme-indent-function 1))
  50. (eval . (put 'with-error-handling 'scheme-indent-function 0))
  51. (eval . (put 'with-mutex 'scheme-indent-function 1))
  52. (eval . (put 'with-atomic-file-output 'scheme-indent-function 1))
  53. (eval . (put 'call-with-compressed-output-port 'scheme-indent-function 2))
  54. (eval . (put 'call-with-decompressed-port 'scheme-indent-function 2))
  55. (eval . (put 'call-with-gzip-input-port 'scheme-indent-function 1))
  56. (eval . (put 'call-with-gzip-output-port 'scheme-indent-function 1))
  57. (eval . (put 'call-with-lzip-input-port 'scheme-indent-function 1))
  58. (eval . (put 'call-with-lzip-output-port 'scheme-indent-function 1))
  59. (eval . (put 'signature-case 'scheme-indent-function 1))
  60. (eval . (put 'emacs-batch-eval 'scheme-indent-function 0))
  61. (eval . (put 'emacs-batch-edit-file 'scheme-indent-function 1))
  62. (eval . (put 'emacs-substitute-sexps 'scheme-indent-function 1))
  63. (eval . (put 'emacs-substitute-variables 'scheme-indent-function 1))
  64. (eval . (put 'with-derivation-narinfo 'scheme-indent-function 1))
  65. (eval . (put 'with-derivation-substitute 'scheme-indent-function 2))
  66. (eval . (put 'with-status-report 'scheme-indent-function 1))
  67. (eval . (put 'with-status-verbosity 'scheme-indent-function 1))
  68. (eval . (put 'with-build-handler 'scheme-indent-function 1))
  69. (eval . (put 'mlambda 'scheme-indent-function 1))
  70. (eval . (put 'mlambdaq 'scheme-indent-function 1))
  71. (eval . (put 'syntax-parameterize 'scheme-indent-function 1))
  72. (eval . (put 'with-monad 'scheme-indent-function 1))
  73. (eval . (put 'mbegin 'scheme-indent-function 1))
  74. (eval . (put 'mwhen 'scheme-indent-function 1))
  75. (eval . (put 'munless 'scheme-indent-function 1))
  76. (eval . (put 'mlet* 'scheme-indent-function 2))
  77. (eval . (put 'mlet 'scheme-indent-function 2))
  78. (eval . (put 'run-with-store 'scheme-indent-function 1))
  79. (eval . (put 'run-with-state 'scheme-indent-function 1))
  80. (eval . (put 'wrap-program 'scheme-indent-function 1))
  81. (eval . (put 'with-imported-modules 'scheme-indent-function 1))
  82. (eval . (put 'with-extensions 'scheme-indent-function 1))
  83. (eval . (put 'with-parameters 'scheme-indent-function 1))
  84. (eval . (put 'let-system 'scheme-indent-function 1))
  85. (eval . (put 'with-database 'scheme-indent-function 2))
  86. (eval . (put 'call-with-transaction 'scheme-indent-function 1))
  87. (eval . (put 'with-statement 'scheme-indent-function 3))
  88. (eval . (put 'call-with-retrying-transaction 'scheme-indent-function 1))
  89. (eval . (put 'call-with-savepoint 'scheme-indent-function 1))
  90. (eval . (put 'call-with-retrying-savepoint 'scheme-indent-function 1))
  91. (eval . (put 'call-with-container 'scheme-indent-function 1))
  92. (eval . (put 'container-excursion 'scheme-indent-function 1))
  93. (eval . (put 'eventually 'scheme-indent-function 1))
  94. (eval . (put 'call-with-progress-reporter 'scheme-indent-function 1))
  95. (eval . (put 'with-repository 'scheme-indent-function 2))
  96. (eval . (put 'with-temporary-git-repository 'scheme-indent-function 2))
  97. (eval . (put 'with-environment-variables 'scheme-indent-function 1))
  98. (eval . (put 'with-fresh-gnupg-setup 'scheme-indent-function 1))
  99. (eval . (put 'with-paginated-output-port 'scheme-indent-function 1))
  100. ;; This notably allows '(' in Paredit to not insert a space when the
  101. ;; preceding symbol is one of these.
  102. (eval . (modify-syntax-entry ?~ "'"))
  103. (eval . (modify-syntax-entry ?$ "'"))
  104. (eval . (modify-syntax-entry ?+ "'"))))
  105. (emacs-lisp-mode . ((indent-tabs-mode . nil)))
  106. (texinfo-mode . ((indent-tabs-mode . nil)
  107. (fill-column . 72))))