Tempfile document updated.
[ruby.git] / .dir-locals.el
blob8f4b96445ceeeaad58d3c9794d4da00cd255c589
1 ;; Copyright (c) 2018 Urabe, Shyouhei. All rights reserved.
2 ;;
3 ;; This file is a part of the programming language Ruby. Permission is hereby
4 ;; granted, to either redistribute and/or modify this file, provided that the
5 ;; conditions mentioned in the file COPYING are met. Consult the file for
6 ;; details.
8 ((nil .
9 ((indent-tabs-mode . nil)
10 (require-final-newline . t)
11 (tab-width . 8)
12 (show-trailing-whitespace . t)
13 (whitespace-line-column . 80))) ;; See also [Misc #12277]
15 ;; (bat-mode . ((buffer-file-coding-system . utf-8-dos)))
17 (ruby-mode . ((ruby-indent-level . 2)))
19 (rdoc-mode . ((fill-column . 74)))
21 (yaml-mode . ((yaml-indent-offset . 2)))
23 (makefile-mode . ((indent-tabs-mode . t)))
25 (c-mode . ((c-file-style . "ruby")))
27 (c++-mode . ((c-file-style . "ruby")))
29 (change-log-mode .
30 ((buffer-file-coding-system . us-ascii)
31 (indent-tabs-mode . t)
32 (change-log-indent-text . 2)
33 (add-log-time-format . (lambda (&optional x y)
34 (let* ((time (or x (current-time)))
35 (system-time-locale "C")
36 (diff (+ (cadr time) 32400))
37 (lo (% diff 65536))
38 (hi (+ (car time) (/ diff 65536))))
39 (format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))))))