Skip to content

Commit

Permalink
Add .dir-locals
Browse files Browse the repository at this point in the history
And tweak some indentation.
  • Loading branch information
Greg Hendershott committed Jun 2, 2017
1 parent beeda04 commit eee0b21
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 16 deletions.
16 changes: 10 additions & 6 deletions .dir-locals.el
Original file line number Diff line number Diff line change
@@ -1,9 +1,13 @@
((nil
. ((indent-tabs-mode . nil)
(require-final-newline . t)
(show-trailing-whitespace . t)))
(indent-tabs-mode . nil)
(require-final-newline . t)
(show-trailing-whitespace . t))
(makefile-mode
. ((indent-tabs-mode . t)))
(indent-tabs-mode . t))
(prog-mode
. ((comment-column . 40)
(fill-column . 70))))
(comment-column . 40)
(fill-column . 70))
(racket-mode
;; Better indentation for quoted xexprs and for at-exprs:
(racket-indent-sequence-depth . 3)
(racket-indent-curly-as-sequence . t)))
18 changes: 9 additions & 9 deletions cmds.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -324,9 +324,9 @@
(define (type-or-contract v) ;any/c -> (or/c #f string?)
;; 1. Try using Typed Racket's REPL simplified type.
(try (match (with-output-to-string
(λ ()
((current-eval)
(cons '#%top-interaction v))))
(λ ()
((current-eval)
(cons '#%top-interaction v))))
[(pregexp "^- : (.*) \\.\\.\\..*\n" (list _ t)) t]
[(pregexp "^- : (.*)\n$" (list _ t)) t])
#:catch exn:fail? _
Expand Down Expand Up @@ -679,12 +679,12 @@
(if first? "" (make-string indent #\space)))
(define (prn-form pre this more)
(define new-indent (+ indent (+ 2 (string-length pre))))
(printf "~a(~a " (indent-string) pre)
(prn this #t new-indent)
(for ([x more])
(newline)
(prn x #f new-indent))
(display ")"))
(printf "~a(~a " (indent-string) pre)
(prn this #t new-indent)
(for ([x more])
(newline)
(prn x #f new-indent))
(display ")"))
(match x
[(list 'require)
(void)]
Expand Down
2 changes: 1 addition & 1 deletion run.rkt
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
(define cr-submod `(submod ,@(match path
[(list 'submod sub-paths ...) sub-paths]
[_ (list path)])
configure-runtime))
configure-runtime))
(when (module-declared? cr-submod)
(dynamic-require cr-submod #f)))

Expand Down

0 comments on commit eee0b21

Please sign in to comment.