aboutsummaryrefslogtreecommitdiff
path: root/lisp/core/init-defaults.el
blob: 259a9c67a2316a034734f37fc643a9b7519df4d4 (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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
;;; init-defaults.el --- Basic Emacs settings -*- lexical-binding: t; -*-

;; Copyright (C) 2026 Richard Qin
;; SPDX-License-Identifier: GPL-3.0-or-later

;; Author: Richard Qin
;; This file is not part of GNU Emacs.

;;; Commentary:

;; Configure basic Emacs behavior and built-in features.
;; Settings in this module are shared across the environment.

;;; Code:

;; ------------------------------------------------------------
;; Startup
;; ------------------------------------------------------------

;; (setq inhibit-startup-screen t)


;; ------------------------------------------------------------
;; User interaction
;; ------------------------------------------------------------

(setq use-short-answers t)

(column-number-mode 1)

(show-paren-mode 1)


;; ------------------------------------------------------------
;; Basic editing
;; ------------------------------------------------------------

(delete-selection-mode 1)


;; ------------------------------------------------------------
;; History
;; ------------------------------------------------------------

(setq savehist-file
      (expand-file-name "var/savehist" user-emacs-directory))

(setq save-place-file
      (expand-file-name "var/places" user-emacs-directory))

(savehist-mode 1)
(save-place-mode 1)

(provide 'init-defaults)

;;; init-defaults.el ends here