summaryrefslogtreecommitdiffstats
path: root/lisp/init-sane-defaults.el
blob: 93729729d64fb9340f299f1b3e31ddbdd4a83722 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
;; use soft tabs and 4 space indent
(setq-default
  tab-width 4
  tab-stop-list (number-sequence 4 120 4)
  indent-tabs-mode nil)

;; bind return to newline-and-indent
(global-set-key (kbd "RET") 'newline-and-indent)

;; make prompts accept y or n
(defalias 'yes-or-no-p 'y-or-n-p)

;; no confirmation for non-existent files or buffers
(setq confirm-nonexistent-file-or-buffer nil)

(provide 'init-sane-defaults)