diff options
Diffstat (limited to 'init.el')
-rw-r--r-- | init.el | 52 |
1 files changed, 26 insertions, 26 deletions
@@ -65,32 +65,6 @@ | |||
65 | ;; --------------------------------------------------------------------- | 65 | ;; --------------------------------------------------------------------- |
66 | 66 | ||
67 | ;; --------------------------------- | 67 | ;; --------------------------------- |
68 | ;; Whitespace | ||
69 | ;; ---------- | ||
70 | ;; Spaces, tabs, indentation, | ||
71 | ;; newlines, and text-wrapping. | ||
72 | ;; --------------------------------- | ||
73 | |||
74 | ;; Show stray whitespace | ||
75 | (setq-default show-trailing-whitespace t | ||
76 | indicate-empty-lines t | ||
77 | indicate-buffer-boundaries 'left) | ||
78 | |||
79 | ;; Make files end with newline | ||
80 | (setq-default require-final-newline t) | ||
81 | |||
82 | ;; Sentences end with ONE space | ||
83 | (setq-default sentence-end-double-space nil) | ||
84 | |||
85 | ;; Use spaces for indentation | ||
86 | (setq-default indent-tabs-mode nil | ||
87 | tab-width 2) | ||
88 | |||
89 | ;; Wrap words at buffer edge | ||
90 | (global-visual-line-mode) | ||
91 | |||
92 | |||
93 | ;; --------------------------------- | ||
94 | ;; Scrolling | 68 | ;; Scrolling |
95 | ;; --------- | 69 | ;; --------- |
96 | ;; This makes the scrolling behavior | 70 | ;; This makes the scrolling behavior |
@@ -119,6 +93,32 @@ | |||
119 | (setq scroll-error-top-bottom t) | 93 | (setq scroll-error-top-bottom t) |
120 | 94 | ||
121 | 95 | ||
96 | ;; --------------------------------- | ||
97 | ;; Whitespace | ||
98 | ;; ---------- | ||
99 | ;; Spaces, tabs, indentation, | ||
100 | ;; newlines, and text-wrapping. | ||
101 | ;; --------------------------------- | ||
102 | |||
103 | ;; Show stray whitespace | ||
104 | (setq-default show-trailing-whitespace t | ||
105 | indicate-empty-lines t | ||
106 | indicate-buffer-boundaries 'left) | ||
107 | |||
108 | ;; Make files end with newline | ||
109 | (setq-default require-final-newline t) | ||
110 | |||
111 | ;; Sentences end with ONE space | ||
112 | (setq-default sentence-end-double-space nil) | ||
113 | |||
114 | ;; Use spaces for indentation | ||
115 | (setq-default indent-tabs-mode nil | ||
116 | tab-width 2) | ||
117 | |||
118 | ;; Wrap words at buffer edge | ||
119 | (global-visual-line-mode) | ||
120 | |||
121 | |||
122 | 122 | ||
123 | 123 | ||
124 | ;; --------------------------------------------------------------------- | 124 | ;; --------------------------------------------------------------------- |