Skip to content

Commit 070a4aa

Browse files
committed
add .dir-locals.el [ci skip]
Recent Emacs (23 and up?) has this feature called .dir-locals.el. See also: https://www.gnu.org/software/emacs/manual/html_node/emacs/Directory-Variables.html git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66583 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
1 parent 1680a13 commit 070a4aa

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.dir-locals.el

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
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.
7+
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]
14+
15+
;; (bat-mode . ((buffer-file-coding-system . utf-8-dos)))
16+
17+
(ruby-mode . ((ruby-indent-level . 2)))
18+
19+
(rdoc-mode . ((fill-column . 74)))
20+
21+
(yaml-mode . ((yaml-indent-offset . 2)))
22+
23+
(makefile-mode . ((indent-tabs-mode . t)))
24+
25+
(c-mode . ((c-file-style . "ruby")))
26+
27+
(change-log-mode .
28+
((buffer-file-coding-system . us-ascii)
29+
(indent-tabs-mode . t)
30+
(change-log-indent-text . 2)
31+
(add-log-time-format . (lambda (&optional x y)
32+
(let* ((time (or x (current-time)))
33+
(system-time-locale "C")
34+
(diff (+ (cadr time) 32400))
35+
(lo (% diff 65536))
36+
(hi (+ (car time) (/ diff 65536))))
37+
(format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))))))

0 commit comments

Comments
 (0)