about summary refs log tree commit diff
path: root/users/tazjin/emacs/config/settings.el
diff options
context:
space:
mode:
authorVincent Ambo <mail@tazj.in>2020-06-18T19·19+0100
committerVincent Ambo <mail@tazj.in>2020-06-18T19·19+0100
commit0b0e8c2da77979eaea9e0b0da865d35bd86936d5 (patch)
tree0327dfb1eddc1c4f1847f27043699fb57fed31be /users/tazjin/emacs/config/settings.el
parent9448a2262b79e67c6b8b9a53cd806cd1f57d3da7 (diff)
chore(tazjin/emacs): Move //tools/emacs to //users/tazjin/emacs r/1025
Change-Id: I9dfbd0bb1fd3e215bb91c5734fb0934ee3faeae6
Diffstat (limited to 'users/tazjin/emacs/config/settings.el')
-rw-r--r--users/tazjin/emacs/config/settings.el51
1 files changed, 51 insertions, 0 deletions
diff --git a/users/tazjin/emacs/config/settings.el b/users/tazjin/emacs/config/settings.el
new file mode 100644
index 000000000000..b895d5e4061e
--- /dev/null
+++ b/users/tazjin/emacs/config/settings.el
@@ -0,0 +1,51 @@
+(require 'uniquify)
+
+;; Move files to trash when deleting
+(setq delete-by-moving-to-trash t)
+
+;; We don't live in the 80s, but we're also not a shitty web app.
+(setq gc-cons-threshold 20000000)
+
+(setq uniquify-buffer-name-style 'forward)
+
+; Fix some defaults
+(setq visible-bell nil
+      inhibit-startup-message t
+      color-theme-is-global t
+      sentence-end-double-space nil
+      shift-select-mode nil
+      uniquify-buffer-name-style 'forward
+      whitespace-style '(face trailing lines-tail tabs)
+      whitespace-line-column 80
+      default-directory "~"
+      fill-column 80
+      ediff-split-window-function 'split-window-horizontally
+      initial-major-mode 'emacs-lisp-mode)
+
+(add-to-list 'safe-local-variable-values '(lexical-binding . t))
+(add-to-list 'safe-local-variable-values '(whitespace-line-column . 80))
+
+(set-default 'indent-tabs-mode nil)
+
+;; UTF-8 please
+(setq locale-coding-system 'utf-8) ; pretty
+(set-terminal-coding-system 'utf-8) ; pretty
+(set-keyboard-coding-system 'utf-8) ; pretty
+(set-selection-coding-system 'utf-8) ; please
+(prefer-coding-system 'utf-8) ; with sugar on top
+
+;; Make emacs behave sanely (overwrite selected text)
+(delete-selection-mode 1)
+
+;; Keep your temporary files in tmp, emacs!
+(setq auto-save-file-name-transforms
+      `((".*" ,temporary-file-directory t)))
+(setq backup-directory-alist
+      `((".*" . ,temporary-file-directory)))
+
+(remove-hook 'kill-buffer-query-functions 'server-kill-buffer-query-function)
+
+;; Show time in 24h format
+(setq display-time-24hr-format t)
+
+(provide 'settings)