-
Notifications
You must be signed in to change notification settings - Fork 7
/
config.rkt
87 lines (67 loc) · 2.67 KB
/
config.rkt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
#lang racket/base
;;;
;;; CONFIGURATION
;;;
; This file contains the default configuration of Remacs.
; Variables defined in this file are used to make the default namespace.
(provide (all-defined-out))
(require racket/set racket/runtime-path
"colors.rkt"
"parameters.rkt")
(define-runtime-path simple.rkt "simple.rkt")
;;;
;;; MODES
;;;
; Set the initial mode to the fundamental mode.
(define major-mode 'fundamental-mode)
(define mode-name "Fundamental")
(define color-buffer #f)
;;;
;;; EDITING
;;;
;;; Indentation
; Note! Tabs aren't supported in rendering yet...
(define indent-tab-mode #f) ; #t = use tabs for indent, #f = use spaces
(define indent-for-tab (dynamic-require simple.rkt 'insert-tab-as-spaces))
(define tab-width 4)
(define tab-stop-list #f) ; every tab-width position
;(define tab-stop-list (for/list ([i (in-range 7 200 8)]) i)) ; positions of tab stops
;;; Margins
(define left-margin 0) ; used by break-line (newline), move-to-left-margin and set-fill-prefix
;;; Filling
(define auto-fill-mode? #t)
(define auto-fill-function #f) ; set when mode activated
(define auto-fill-chars (set #\space))
(define fill-column 76)
(define fill-prefix "")
;;; Show Paren
(define show-paren-mode? #t)
;;;
;;; RENDERING
;;;
;;; Screen Line Length
; Lines longer than screen-line-length are wrapped into multiple screen lines.
(define screen-line-length 80)
;;; Line and Column Number Mode
(define line-number-mode? #t) ; use line-number-mode to toggle
(define column-number-mode? #t) ; use line-column-mode to toggle
(define line-number-display-limit 10000) ; only display line number if buffer length is smaller
; Highlight Line Containing Point
(define hl-line-mode? #f) ; use hl-line-mode to toggle
(define hl-line-mode-color base00) ; (base02 used for region high light)
;;; Colors
(define background-color base03) ; solarized dark mode
(define region-highlighted-color base01) ; solarized dark mode
(define text-color base0) ; solarized dark mode
(define border-color base00) ; ?
(define show-paren-color base02) ; background color between parens
(define show-paren-error-color red) ; color to show no mathcing paren
;;; Style and Weight
(define text-style 'normal)
(define text-weight 'normal)
;;; Wrapped Lines
; Long text lines are wrapped into multiple screen lines.
; If wrapped-line-indicator? is true, then wrapped-line-indicator is displayed
; after each wrapped line.
(define wrapped-line-indicator? #t)
(define wrapped-line-indicator "↵")