Browse code
emacs: disable electric indent/electric pair modes
Ed Langley authored on 29/07/2019 16:42:12
Showing 2 changed files
Showing 2 changed files
... | ... |
@@ -104,10 +104,13 @@ Also bind `class' to ((class color) (min-colors 89))." |
104 | 104 |
'(nrepl-message-colors (quote ("#CC9393" "#DFAF8F" "#F0DFAF" "#7F9F7F" "#BFEBBF" "#93E0E3" "#94BFF3" "#DC8CC3")))) |
105 | 105 |
|
106 | 106 |
|
107 |
+ |
|
107 | 108 |
(fwoar/zenburn-with-color-variables |
108 | 109 |
(custom-theme-set-faces |
109 | 110 |
'fwoar-zenburn |
110 | 111 |
`(highlight ((t (:inverse-video t)))) |
112 |
+ |
|
113 |
+ ;; font-lock |
|
111 | 114 |
`(font-lock-builtin-face ((t (:weight bold)))) |
112 | 115 |
`(font-lock-comment-face ((t (:inherit fwoar-zenburn-1-face)))) |
113 | 116 |
`(font-lock-comment-delimiter-face ((t (:inherit font-lock-comment-face)))) |
... | ... |
@@ -151,13 +154,13 @@ Also bind `class' to ((class color) (min-colors 89))." |
151 | 154 |
:slant normal :weight normal :height 130 :width normal |
152 | 155 |
:foreground ,zenburn-fg :background ,zenburn-bg |
153 | 156 |
:inherit fwoar-zenburn-face)))) |
157 |
+ |
|
154 | 158 |
;; helm |
155 | 159 |
`(helm-source-header ((t :inherit fwoar-zenburn+1-face))) |
156 | 160 |
`(helm-M-x-key ((t (:foreground ,zenburn-orange)))) |
157 | 161 |
`(helm-candidate-number ((t (:foreground ,zenburn-yellow)))) |
158 | 162 |
`(helm-selection ((t (:foreground ,zenburn-blue+1 :background ,zenburn-bg-1)))) |
159 | 163 |
`(helm-match ((t (:foreground ,zenburn-yellow :background ,zenburn-bg-2 :box ,zenburn-yellow-1)))) |
160 |
- |
|
161 | 164 |
`(helm-ff-denied ((t (:foreground ,zenburn-red :background ,zenburn-black)))) |
162 | 165 |
`(helm-ff-directory ((t (:foreground ,zenburn-cyan)))) |
163 | 166 |
`(helm-ff-dotted-directory ((t (:foreground ,zenburn-cyan :background ,zenburn-bg+1)))) |
... | ... |
@@ -205,6 +208,7 @@ Also bind `class' to ((class color) (min-colors 89))." |
205 | 208 |
`(helm-selection ((t (:foreground ,zenburn-blue+1 :background ,zenburn-bg-1)))) |
206 | 209 |
`(helm-separator ((t (:foreground ,zenburn-red :background unspecified)))) |
207 | 210 |
`(helm-visible-mark ((t (:foreground unspecified :background unspecified)))) |
211 |
+ |
|
208 | 212 |
;;company |
209 | 213 |
`(company-echo-common ((t (:foreground ,zenburn-red-1 :background unspecified)))) |
210 | 214 |
`(company-preview ((t (:foreground ,zenburn-blue+1 :background ,zenburn-bg-2)))) |
... | ... |
@@ -236,16 +240,12 @@ Also bind `class' to ((class color) (min-colors 89))." |
236 | 240 |
`(magit-diff-removed ((t (:foreground ,zenburn-fg-1 :background ,zenburn-red-5)))) |
237 | 241 |
`(magit-diff-added-highlight ((t (:foreground ,zenburn-fg+1 :background ,zenburn-green-3)))) |
238 | 242 |
`(magit-diff-removed-highlight ((t (:foreground ,zenburn-fg+1 :background ,zenburn-red-3)))) |
239 |
- |
|
240 | 243 |
`(magit-section ((t (:foreground ,zenburn-yellow :background ,zenburn-bg)))) |
241 | 244 |
`(magit-section-highlight ((t (:foreground ,zenburn-blue+1 :background ,zenburn-bg+1)))) |
242 |
- |
|
243 | 245 |
`(magit-diff-base ((t (:foreground unspecified :background unspecified)))) |
244 | 246 |
`(magit-diff-base-highlight ((t (:foreground unspecified :background unspecified)))) |
245 |
- |
|
246 | 247 |
`(magit-diff-context ((t (:foreground ,zenburn-fg-1 :background ,zenburn-bg-2)))) |
247 | 248 |
`(magit-diff-context-highlight ((t (:foreground ,zenburn-fg :background ,zenburn-bg-1)))) |
248 |
- |
|
249 | 249 |
`(magit-diff-file-heading ((t (:background ,zenburn-bg+05)))) |
250 | 250 |
`(magit-diff-file-heading-highlight ((t (:foreground ,zenburn-blue+1 :background ,zenburn-bg+1)))) |
251 | 251 |
`(magit-diff-hunk-heading ((t (:background ,zenburn-bg+1)))) |
... | ... |
@@ -139,7 +139,8 @@ started from a shell." |
139 | 139 |
(defun cold-boot () |
140 | 140 |
(setq fwoar.is-ordinary (not (string= invocation-name "EmacsNotes"))) |
141 | 141 |
(add-hook 'after-init-hook 'post-init) |
142 |
- |
|
142 |
+ (electric-indent-mode -1) |
|
143 |
+ (electric-pair-mode -1) |
|
143 | 144 |
|
144 | 145 |
(when (file-exists-p "/usr/local/bin/gls") |
145 | 146 |
(setq insert-directory-program "/usr/local/bin/gls")) |