Skip to content

Commit

Permalink
Use .dir-locals.el instead of file variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Hendershott committed Jul 15, 2015
1 parent 5124c29 commit bc3152a
Show file tree
Hide file tree
Showing 29 changed files with 7 additions and 228 deletions.
7 changes: 7 additions & 0 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
((nil
. ((indent-tabs-mode . nil)
(require-final-newline . t)
(show-trailing-whitespace . t)))
(prog-mode
. ((comment-column . 40)
(fill-column . 78))))
8 changes: 0 additions & 8 deletions cmds.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -743,11 +743,3 @@
(list 'def/uses def-beg def-end tweaked-uses)))
;; Append both lists and print as Elisp values.
(elisp-println (append infos defs/uses)))))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions defn.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,3 @@
(check-equal? (find-definition "display") 'kernel)
(check-match (find-definition "displayln")
(list* (pregexp "/racket/private/misc\\.rkt$") _)))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions error.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,3 @@
(check-not-exn
(λ ()
(maybe-suggest-packages (exn:fail "" (current-continuation-marks))))))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions find-module-path-completions.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,3 @@
(λ (str)
(for ([x (in-list (get str))])
(displayln (path->string (cadr x)))))))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions gui.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,3 @@

(define (gui-dyn-req sym)
(dynamic-require 'racket/gui/base sym))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions image.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,3 @@
(define (convert-image v)
(cond [(and (convertible? v) (convert v 'png-bytes)) => save-temporary-image]
[else v]))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
9 changes: 0 additions & 9 deletions keywords.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,3 @@
;; (prn builtins1)
;; (prn builtins2)
;; (prn types)


;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions logger.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,3 @@
",log <logger> default -- set logger to use the default, 'all other' level."
",log <level> -- set the default level, for 'all other' loggers.\n")
"\n; "))]))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions older-racket.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -80,11 +80,3 @@
(define hash-clear!
(dynamic-require 'racket/base 'hash-clear!
(const our-hash-clear!)))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
11 changes: 0 additions & 11 deletions racket-bug-report.el
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,6 @@
(pp `(disabled-minor-modes ,@(mapcar #'f (cl-remove-if #'cadr sorted))))))
(princ "```\n"))))

(defun racket-bug-report--val (id)
)

(provide 'racket-bug-report)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;;; racket-bug-report.el ends here
8 changes: 0 additions & 8 deletions racket-collection.el
Original file line number Diff line number Diff line change
Expand Up @@ -323,12 +323,4 @@ Also constrain point in case user tried to navigate past

(provide 'racket-collection)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-collection.el ends here
8 changes: 0 additions & 8 deletions racket-common.el
Original file line number Diff line number Diff line change
Expand Up @@ -522,12 +522,4 @@ existence using `fboundp'."

(provide 'racket-common)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-common.el ends here
8 changes: 0 additions & 8 deletions racket-complete.el
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,4 @@ See `racket--invalidate-completion-cache' and

(provide 'racket-complete)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-complete.el ends here
8 changes: 0 additions & 8 deletions racket-custom.el
Original file line number Diff line number Diff line change
Expand Up @@ -245,14 +245,6 @@ Instead you can insert actual λ characters using
:tag "Selfeval Face"
:group 'racket-faces)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

(provide 'racket-custom)

;; racket-custom.el ends here
8 changes: 0 additions & 8 deletions racket-edit.el
Original file line number Diff line number Diff line change
Expand Up @@ -1006,12 +1006,4 @@ containing spaces by escaping them."

(provide 'racket-edit)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-edit.el ends here
8 changes: 0 additions & 8 deletions racket-font-lock.el
Original file line number Diff line number Diff line change
Expand Up @@ -267,12 +267,4 @@ Needed to support let, because we need the whole form (if any)."

(provide 'racket-font-lock)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-font-lock.el ends here
8 changes: 0 additions & 8 deletions racket-indent.el
Original file line number Diff line number Diff line change
Expand Up @@ -453,12 +453,4 @@ doesn't hurt to do so."

(provide 'racket-indent)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-indent.el ends here
8 changes: 0 additions & 8 deletions racket-keywords-and-builtins.el
Original file line number Diff line number Diff line change
Expand Up @@ -2666,12 +2666,4 @@

(provide 'racket-keywords-and-builtins)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-keywords-and-builtins.el ends here
8 changes: 0 additions & 8 deletions racket-make-doc.el
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,4 @@
nil nil)))
(buffer-substring-no-properties (point-min) (point-max))))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;;; racket-make-doc.el ends here
8 changes: 0 additions & 8 deletions racket-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -185,12 +185,4 @@ http://www.gnu.org/licenses/ for details.")

(provide 'racket-mode)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;;; racket-mode.el ends here
8 changes: 0 additions & 8 deletions racket-repl.el
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,4 @@ With prefix arg, open the N-th last shown image."

(provide 'racket-repl)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-repl.el ends here
8 changes: 0 additions & 8 deletions racket-tests.el
Original file line number Diff line number Diff line change
Expand Up @@ -133,12 +133,4 @@ special forms it handles."

(provide 'racket-tests)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;;; racket-tests.el ends here
8 changes: 0 additions & 8 deletions racket-unicode-input-method.el
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,4 @@ can turn it off by setting `input-method-highlight-flag' to nil via

(provide 'racket-unicode-input-method)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;;; racket-unicode-input-method.el ends here
8 changes: 0 additions & 8 deletions racket-util.el
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,4 @@ strings."

(provide 'racket-util)

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

;; racket-util.el ends here
8 changes: 0 additions & 8 deletions run.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -208,11 +208,3 @@
(λ (value display? port)
(cond [(convert? value) (print (convert value) port)]
[else (orig value display? port)]))))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions scribble.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -157,11 +157,3 @@
'nbsp
,@provide-xexprs)
,@xs)]))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions try-catch.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@
[(_ body:expr ...+ catch:catch-clause ...+)
#'(with-handlers (catch.handler ...)
body ...)]))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:
8 changes: 0 additions & 8 deletions util.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,3 @@
[(_ ([lib:id id:id] ...+) body:expr ...+)
#'(let ([id (dynamic-require 'lib 'id)] ...)
body ...)]))

;; Local Variables:
;; coding: utf-8
;; comment-column: 40
;; indent-tabs-mode: nil
;; require-final-newline: t
;; show-trailing-whitespace: t
;; End:

0 comments on commit bc3152a

Please sign in to comment.