summary refs log tree commit diff
path: root/emacs.d/inits/00_emacs.el
blob: 511076ba99df47c269f4305065d8af2a18fff4e3 (plain) (blame)
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
;; alias yes-or-no to y-or-n
(fset 'yes-or-no-p 'y-or-n-p)

;; set utf-8 as the default encoding
(prefer-coding-system 'utf-8-unix)

(setq auto-save-default nil)

(setq auto-save-list-file-prefix nil)

;; *no* backups
(setq make-backup-files nil)

;; always add a newline
(setq require-final-newline t)

;; follow symlinks
(setq vc-follow-symlinks t)

(setq tab-always-indent 'complete)

(use-package exec-path-from-shell
  :ensure t
  :config
  (exec-path-from-shell-initialize)
  (exec-path-from-shell-copy-envs '("TMPDIR" "GOPATH")))

(use-package server
  :config
  (unless (server-running-p)
    (server-start)))