diff options
author | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-20 14:08:28 -0400 |
---|---|---|
committer | Mountain Man <43313373+MountainMan1312@users.noreply.github.com> | 2023-04-20 14:08:28 -0400 |
commit | a0a18d5b15ffccbb174f3aad3190c15e373d367e (patch) | |
tree | fbb6f396bf180f65e33d573ab121ad54abbcf014 /init.el | |
parent | Fix mismatched parentheses (diff) | |
download | mmosmacs-a0a18d5b15ffccbb174f3aad3190c15e373d367e.tar.gz mmosmacs-a0a18d5b15ffccbb174f3aad3190c15e373d367e.tar.bz2 mmosmacs-a0a18d5b15ffccbb174f3aad3190c15e373d367e.zip |
refactor: Organize Text Editor subsections
Reorder the subsections within the Text Editor section of `init.el`. For
me, it makes more sense to have things related to the editor at the top,
and things related more to the content within the editor second.
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 | ;; --------------------------------------------------------------------- |