1 ;; Copyright (c) 2018 Urabe, Shyouhei. All rights reserved.
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
9 ((indent-tabs-mode . nil
)
10 (require-final-newline . t
)
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")))
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))
38 (hi (+ (car time
) (/ diff
65536))))
39 (format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo
) t
)))))))