-
Notifications
You must be signed in to change notification settings - Fork 0
/
.emacs
30 lines (26 loc) · 1.08 KB
/
.emacs
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
(add-to-list 'load-path "~/.emacs.d/lisp/")
(add-to-list 'load-path "~/elisp")
(setq-default major-mode 'text-mode)
;;; Indent with spaces, not tabs
(setq-default indent-tabs-mode nil)
;;; Do not interrupt editing sessions with autosaves
(setq-default auto-save-mode nil)
;;; use auto wrap
;;; (add-hook 'text-mode-hook 'turn-on-auto-fill)
;;; Case-sensitive searches
(setq-default case-fold-search nil)
;;; show horizontal position within status bar:
(setq column-number-mode t)
;;; make edited files end with a carriage return:
(setq require-final-newline t)
;;; Keep backup/autosave files out of working directories
(defvar backup-dir (expand-file-name "~/.emacs.d/backups/"))
(defvar autosave-dir (expand-file-name "~/.emacs.d/autosaves/"))
(setq backup-directory-alist (list (cons ".*" backup-dir)))
(setq auto-save-list-file-prefix autosave-dir)
(setq auto-save-file-name-transforms `((".*" ,autosave-dir t)))
;;; Disable annoying audio feedback
(setq visible-bell nil)
(setq ring-bell-function `(lambda ()
(set-face-background 'default "DodgerBlue")
(set-face-background 'default "black")))