blob: f4fd4cec912e31f9a81c941608befa5fa61bf14c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
|
;;; -*- lexical-binding: t; -*-
;; Backups
(make-directory "~/.cache/emacs_backups/" t)
(make-directory "~/.cache/emacs_autosave/" t)
(setq backup-directory-alist '(("." . "~/.cache/emacs_backups/")))
(setq auto-save-file-name-transforms '((".*" "~/.cache/emacs_autosave/" t)))
;; Keep backups, but avoid same directory since it can be slow on tramp.
(setq version-control t
delete-old-versions -1
vc-make-backup-files t
create-lockfiles nil
backup-by-copying t)
(setq-default indent-tabs-mode nil)
(setq sentence-end-double-space nil)
(setq save-interprogram-paste-before-kill t)
(setq mouse-yank-at-point t)
(setq enable-recursive-minibuffers t)
(set-language-environment "utf-8")
(setq require-final-newline t)
;; Save bookmark list every time a bookmark is added.
(setq bookmark-save-flag 1)
(delete-selection-mode 1)
(savehist-mode 1)
;; Resize settings
(setq frame-inhibit-implied-resize t)
(setq pixel-scroll-precision-mode t)
(setq kill-whole-line t)
(provide 'kj-defaults)
|