blob: 6feec7642f091a5e2106823d704f6ed8d6dc41f9 (
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
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
57
58
59
|
;; set utf-8 as the default encoding
(prefer-coding-system 'utf-8-unix)
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
;; alias yes-or-no to y-or-n
(fset 'yes-or-no-p 'y-or-n-p)
;; where to save the bookmarks
(setq bookmark-default-file (expand-file-name "var/bookmarks" user-emacs-directory)
bookmark-save-flag 1)
;; reload the buffer when a file changes
(global-auto-revert-mode 1)
;; clean old buffers at midnight
(use-package midnight
:config
(midnight-mode t))
;; scroll 5 lines at a time
(setq next-screen-context-lines 5)
;; when using TAB, always indent
(setq tab-always-indent 'complete)
;; don't auto save files
(setq auto-save-default nil)
;; I really don't want backup files
(setq auto-save-list-file-prefix nil
make-backup-files nil)
;; How long to display an echo-area message when the minibuffer is active.
(setq minibuffer-message-timeout 0.5)
;; don't use a lock file
(setq-default create-lockfiles nil)
;; where to save custom settings
(setq custom-file (expand-file-name "var/emacs-custom.el" user-emacs-directory))
;; automatically revert the buffer if the content changed on disk
(use-package autorevert :diminish auto-revert-mode)
;; configuration for recentf, to interact with recent files
(use-package recentf
:config
(setq recentf-save-file (expand-file-name "var/recentf" user-emacs-directory)))
(use-package server
:config
(unless (server-running-p) (server-start)))
(provide 'module-general)
|