tvl-depot/init/settings.el

73 lines
2.1 KiB
EmacsLisp
Raw Normal View History

(require 'uniquify)
;; Make ivy go!
(ivy-mode 1)
(counsel-mode 1)
(setq ivy-use-virtual-buffers t)
(setq enable-recursive-minibuffers t)
;; Enable fuzzy matching in ivy (requires flx installed for sane
;; ordering)
(setq ivy-re-builders-alist '((t . ivy--regex-fuzzy)))
2017-10-15 13:30:10 +02:00
;; 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
2014-02-01 21:20:10 +01:00
(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
2013-10-20 20:05:13 +02:00
default-directory "~"
fill-column 80
ediff-split-window-function 'split-window-horizontally)
2014-01-30 14:26:52 +01:00
(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)
2017-11-15 21:00:38 +01:00
;; Show time in 24h format
(setq display-time-24hr-format t)
;; Make ace-window behave in a sane way:
(setq aw-keys '(?f ?j ?d ?k ?s ?l ?a)) ; Homerow keys in sensible order!
(setq aw-scope 'frame) ; There are many frames in exwm, I don't care!
;; Configure pinentry for use with GPG
(setq epa-pinentry-mode 'loopback)
(pinentry-start)
2018-05-18 12:20:34 +02:00
;; Close mail buffers after sending mail
(setq message-kill-buffer-on-exit t)
2014-10-21 19:37:19 +02:00
(provide 'settings)