summaryrefslogtreecommitdiff
path: root/settings/sane-defaults.el
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--settings/sane-defaults.el13
1 files changed, 11 insertions, 2 deletions
diff --git a/settings/sane-defaults.el b/settings/sane-defaults.el
index 9fc5532..c561381 100644
--- a/settings/sane-defaults.el
+++ b/settings/sane-defaults.el
@@ -61,8 +61,8 @@
(setq enable-recursive-minibuffers t)
;; More memory than even Magnars...cause the future keeps happening
-;; 50 MB should be good
-(setq gc-cons-threshold 50000000)
+;; 100 MB should be good
+(setq gc-cons-threshold 100000000)
;; warn when opening files bigger than 100MB
(setq large-file-warning-threshold 100000000)
@@ -89,4 +89,13 @@
(add-to-list 'find-file-not-found-functions 'my-create-non-existent-directory)
+(add-hook 'before-save-hook 'delete-trailing-whitespace)
+(set-default-coding-systems 'utf-8)
+(set-terminal-coding-system 'utf-8)
+(set-keyboard-coding-system 'utf-8)
+(setq default-buffer-file-coding-system 'utf-8)
+(setq x-select-request-type '(UTF8_STRING COMPOUND_TEXT TEXT STRING))
+
+(prefer-coding-system 'utf-8)
+
(provide 'sane-defaults)