dotfiles/emacs/.emacs.modular/config/init-defaults.el
2021-02-20 06:40:03 -05:00

25 lines
856 B
EmacsLisp

;; Fix Emacs' bad defaults
;; Save backups and autosaves in a centralized place
(defvar autosave-directory (expand-file-name "autosaves" user-emacs-directory))
(defvar backup-directory (expand-file-name "backups" user-emacs-directory))
(make-directory autosave-directory t)
(setq auto-save-file-name-transforms `((".*" ,autosave-directory t))
backup-directory-alist `(("." . ,backup-directory)))
;; Sensible variable defaults
(setq ring-bell-function nil
enable-recursive-minibuffers t
read-process-output-max (* 1024 1024)
vc-follow-symlinks t
display-line-numbers-type 'visual)
(setq-default indent-tabs-mode nil)
;; Always take up the full screen when Emacs opens
(add-to-list 'default-frame-alist '(fullscreen . maximized))
;; Always display line numbers
(global-display-line-numbers-mode 1)
(provide 'init-defaults)