-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.el
163 lines (147 loc) · 4.87 KB
/
init.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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
;;; init.el --- Init file -*- lexical-binding: t; -*-
;; Copyright (C) 2019 Iulian Costan
;; Author: Iulian Costan
;; Keywords: lisp dotemacs init
;; URL: https://github.com/icostan/emacs.d
;; Package-Version: 1.0
;; Package-Requires: ((emacs "29.1"))
;; SPDX-License-Identifier: MIT
;;; Commentary:
;; Emacs configuration
;;; Code:
;; build-in package setup
(message "")
(message "==> INIT: START, %s." (user-login-name))
(require 'package)
(setq package-enable-at-startup nil)
(setq package-archives
'
(("gnu" . "http://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")))
(package-initialize)
(message "==> INIT: packages.el")
;; use-package setup
(unless (package-installed-p 'use-package)
(package-refresh-contents)
(package-install 'use-package))
(eval-when-compile
(require 'use-package)
(require 'use-package-ensure)
(setq use-package-always-ensure t)
(setq use-package-verbose nil)
(setq use-package-expand-minimally nil)
(setq use-package-compute-statistics t))
(use-package use-package-ensure-system-package)
(use-package
auto-package-update
:custom
(auto-package-update-delete-old-versions t)
(auto-package-update-interval 30)
(auto-package-update-hide-results nil))
(use-package use-package-chords :custom (key-chord-mode 1))
(use-package diminish)
(use-package gnu-elpa-keyring-update)
(use-package
exec-path-from-shell
:config (exec-path-from-shell-initialize))
(message "==> INIT: use-package")
;; quelpa setup - replaced by package-vc-install
;; (unless (package-installed-p 'quelpa)
;; (with-temp-buffer
;; (url-insert-file-contents "https://github.com/quelpa/quelpa/raw/master/quelpa.el")
;; (eval-buffer)
;; (quelpa-self-upgrade)))
;; (quelpa
;; '(quelpa-use-package
;; :fetcher git
;; :url "https://github.com/quelpa/quelpa-use-package.git"))
;; (require 'quelpa-use-package)
;; (message "==> INIT: quelpa")
;; emacs setup
(use-package
emacs
:custom
(user-full-name "Iulian Costan")
(user-login-name "icostan")
(x-alt-keysym 'meta "Use ALT as Meta key, instead of default ESC")
(line-number-mode t "Show line number in mode line")
(column-number-mode t "Show column number in mode line")
(display-line-numbers-type
'relative
"Relative line number in fringe")
(custom-file null-device "Don't store customization")
(truncate-lines nil)
(truncate-partial-width-windows nil)
(indent-tabs-mode nil)
(indicate-empty-lines t)
(indicate-unused-lines t)
(show-trailing-whitespace t)
(hl-line-mode t)
(highlight-indent-guides-mode t)
(electric-pair-mode t)
(semantic-mode t)
(tab-width 4)
(inhibit-splash-screen t)
(inhibit-startup-message t)
(visible-bell t)
(menu-bar-mode nil "Non-nil shows the menubar")
(tooltip-mode nil "Non-nil shows the tooltip")
(scroll-bar-mode nil "Non-nil shows the scrollbar")
(tool-bar-mode nil "Non-nil shows the toolbar")
(make-backup-files nil)
(auto-save-default nil)
(async-shell-command-buffer 'new-buffer)
(initial-frame-alist
'
((height . 24)
(width . 80)))
(default-frame-alist '((font . "Fira Code-6:bold")))
:custom-face (default ((t (nil :font "Fira Code-6:bold"))))
;; "Source Code Pro-7"
;; "Monospace-7
;; "Monaco-7"
;; "Consolas-7"
;; "Inconsolata-8"
;; "Anonymous Pro-8"
;; "DejaVu Sans Mono-7"
;; "Fira Code-7"
:config (global-display-line-numbers-mode t))
;; (use-package fira-code-mode
;; :custom (fira-code-mode-disabled-ligatures '("[]" "|>"))
;; :hook prog-mode)
(message "==> INIT: emacs")
(use-package themes :load-path "init")
(use-package ui :load-path "init")
(use-package math :load-path "init")
(use-package vim :load-path "init")
(use-package keybindings-general :load-path "init")
;; (use-package completion-company :load-path "init")
(use-package completion-corfu :load-path "init")
;; (use-package selection-ivy :load-path "init")
(use-package selection-vertico :load-path "init")
(use-package project-management :load-path "init")
(use-package misc :load-path "init")
(use-package git :load-path "init")
(use-package editing :load-path "init")
(use-package syntax-flycheck :load-path "init")
(use-package syntax-flymake :load-path "init")
(use-package compiling :load-path "init")
(use-package navigation :load-path "init")
(use-package presentation :load-path "init")
(use-package personal-finance :load-path "init")
;; (use-package lsp-lsp :load-path "init")
(use-package lsp-eglot :load-path "init")
(use-package searching :load-path "init")
(use-package snippets :load-path "init")
(use-package spelling :load-path "init")
(use-package startup :load-path "init")
(use-package trees :load-path "init")
(use-package windows :load-path "init")
(use-package helper :load-path "init")
(use-package langs :load-path "init")
(use-package diagrams :load-path "init")
(use-package files-essentials :load-path "init")
(message "==> INIT: DONE, %s." (user-login-name))
(message "")
(provide 'init)
;;; init.el ends here