[前][次][番号順一覧][スレッド一覧]

ruby-changes:54369

From: shyouhei <ko1@a...>
Date: Thu, 27 Dec 2018 15:11:17 +0900 (JST)
Subject: [ruby-changes:54369] shyouhei:r66583 (trunk): add .dir-locals.el [ci skip]

shyouhei	2018-12-27 15:11:09 +0900 (Thu, 27 Dec 2018)

  New Revision: 66583

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=66583

  Log:
    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

  Added files:
    trunk/.dir-locals.el
Index: .dir-locals.el
===================================================================
--- .dir-locals.el	(nonexistent)
+++ .dir-locals.el	(revision 66583)
@@ -0,0 +1,37 @@ https://github.com/ruby/ruby/blob/trunk/.dir-locals.el#L1
+;; Copyright (c) 2018 Urabe, Shyouhei.  All rights reserved.
+;;
+;; This file is a part of  the programming language Ruby.  Permission is hereby
+;; granted, to either  redistribute and/or modify this file,  provided that the
+;; conditions mentioned  in the  file COPYING  are met.   Consult the  file for
+;; details.
+
+((nil .
+     ((indent-tabs-mode . nil)
+      (require-final-newline . t)
+      (tab-width . 8)
+      (show-trailing-whitespace . t)
+      (whitespace-line-column . 80))) ;; See also [Misc #12277]
+
+ ;; (bat-mode . ((buffer-file-coding-system . utf-8-dos)))
+
+ (ruby-mode . ((ruby-indent-level . 2)))
+
+ (rdoc-mode . ((fill-column . 74)))
+
+ (yaml-mode . ((yaml-indent-offset . 2)))
+
+ (makefile-mode . ((indent-tabs-mode . t)))
+
+ (c-mode . ((c-file-style . "ruby")))
+
+ (change-log-mode .
+     ((buffer-file-coding-system . us-ascii)
+      (indent-tabs-mode . t)
+      (change-log-indent-text . 2)
+      (add-log-time-format . (lambda (&optional x y)
+        (let* ((time (or x (current-time)))
+	       (system-time-locale "C")
+	       (diff (+ (cadr time) 32400))
+	       (lo (% diff 65536))
+	       (hi (+ (car time) (/ diff 65536))))
+        (format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))))))

Property changes on: .dir-locals.el
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+LF
\ No newline at end of property

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]