-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbase-custom.el
62 lines (44 loc) · 1.33 KB
/
base-custom.el
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
60
61
62
;;; base-custom.el --- define generci custom emacs configuration
;;; Commentary:
;; - General screen configuration
;; - Add melpa to package-archives
;;; Code:
;; UTF8 Unix by default where possible.
(prefer-coding-system 'utf-8-unix)
(setq buffer-file-coding-system 'utf-8-unix)
;; disable useless graphical extras
(tool-bar-mode -1)
(scroll-bar-mode -1)
;; hide startup messages
(setq inhibit-startup-screen t) ; no splash screen
;; nothing in *scratch* when started
(setq initial-scratch-message nil)
;; show matching parentheses
(show-paren-mode 1)
;; whitespace
(setq show-trailing-whitespace t)
;; disable beeping and visual bell
(setq visible-bell nil)
(setq ring-bell-function 'ignore)
;; dialog boxes are annoying
(setq use-dialog-box nil)
;; bigger message log than default of 100
(setq message-log-max 5000)
;; editing adjustments
(setq-default indent-tabs-mode nil)
;; Prefer newer byte code
(setq load-prefer-newer t)
;; Configuration for ido mode.
(require 'ido)
(ido-mode t)
(setq ido-enable-flex-matching t)
;; Configure use-package
(require 'package)
(add-to-list 'package-archives
'("melpa" . "http://melpa.milkbox.net/packages/"))
(package-initialize)
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(provide 'base-custom)
;;; base-custom.el ends here