-
Notifications
You must be signed in to change notification settings - Fork 23
/
init-mini.el
54 lines (42 loc) · 1.35 KB
/
init-mini.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
;;; init-mini.el --- The minimal configuration -*- lexical-binding: t -*-
;;; Commentary:
;;
;; Emacs minimal configuration for debugging.
;;
;;; Code:
(require 'package)
(setq package-archives
'(("melpa" . "https://melpa.org/packages/")
("gnu" . "https://elpa.gnu.org/packages/")
("nongnu" . "https://elpa.nongnu.org/nongnu/")))
(package-initialize)
;; Bootstrap `use-package'
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-and-compile
(setq use-package-always-ensure nil)
(setq use-package-always-defer nil)
(setq use-package-always-demand nil)
(setq use-package-expand-minimally nil)
(setq use-package-enable-imenu-support t))
(eval-when-compile
(require 'use-package))
(setq debug-on-error t)
(setq-default lexical-binding t)
(add-to-list 'load-path (file-name-as-directory (locate-user-emacs-file "lisp")))
(setq custom-file (locate-user-emacs-file "custom.el"))
(require 'init-base)
;; Incremental complete in minibuffer
(use-package icomplete
:ensure nil
:hook (emacs-startup . icomplete-mode)
:custom
(icomplete-vertical-mode t)
(icomplete-prospects-height 10)
(icomplete-hide-common-prefix nil)
(icomplete-show-matches-on-no-input nil))
(when (file-exists-p custom-file)
(load custom-file))
(provide 'init-mini)
;;; init-mini.el ends here