-
Notifications
You must be signed in to change notification settings - Fork 1
/
early-init.el
96 lines (75 loc) · 3.7 KB
/
early-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
;;; early-init.el --- -*- lexical-binding: t; -*-
;; Copyright (C) 2018-2022 Abhishek(Compro) Prasad
;; Author: Abhishek(Compro) Prasad
;; Keywords: emacs, configuration, elisp
;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
;; the Free Software Foundation, either version 3 of the License, or
;; (at your option) any later version.
;; This program is distributed in the hope that it will be useful,
;; but WITHOUT ANY WARRANTY; without even the implied warranty of
;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
;; GNU General Public License for more details.
;; You should have received a copy of the GNU General Public License
;; along with this program. If not, see <http://www.gnu.org/licenses/>.
;;; Commentary:
;; Comment
;;; Code:
(setq debug-on-error t
init-file-debug t)
(defalias 'ft 'file-truename)
(defvaralias 'emacs-d 'user-emacs-directory)
(add-to-list 'load-path (concat emacs-d "lisp"))
(setq cache-d (locate-user-emacs-file (concat emacs-d ".cache/"))
package-user-dir (concat cache-d "elpa/"))
(use-package server
:config
(when (not (server-running-p))
(let ((server-file (concat cache-d "server/server")))
(when (file-exists-p server-file)
(delete-file server-file)
(message "Old server file deleted")))
(message "Starting server")
(server-start)))
(menu-bar-mode 0)
(menu-bar-no-scroll-bar)
(blink-cursor-mode 0)
(tool-bar-mode 0)
(delete-selection-mode 1)
(when (not window-system)
(xterm-mouse-mode 1)) ; Enable mouse in terminal
;; start the initial frame maximized
;; (add-to-list 'initial-frame-alist '(fullscreen . maximized))
;; start every frame maximized
;; (add-to-list 'default-frame-alist '(fullscreen . maximized))
;; This modifies both of the above
(modify-all-frames-parameters '((fullscreen . maximized)))
;; (dolist (el '("test" "test1")) (message el))
;; (custom-theme-set-faces
;; 'compro-light
;; )
(custom-set-faces
'(org-level-1 ((t (:inherit outline-1 :extend t :height 3.0))))
'(org-level-2 ((t (:inherit outline-2 :extend t :height 2.5))))
'(org-level-3 ((t (:inherit outline-3 :extend t :height 2.0))))
'(org-level-4 ((t (:inherit outline-4 :extend t :height 1.5)))))
;; light
(custom-set-faces
'(dired-subtree-depth-1-face ((t (:background "white smoke"))))
'(dired-subtree-depth-2-face ((t (:background "gainsboro"))))
'(dired-subtree-depth-3-face ((t (:background "white smoke"))))
'(dired-subtree-depth-4-face ((t (:background "gainsboro"))))
'(dired-subtree-depth-5-face ((t (:background "white smoke"))))
'(dired-subtree-depth-6-face ((t (:background "gainsboro"))))
'(org-block ((t (:inherit shadow :extend t :background "white smoke"))))
'(org-block-begin-line ((t (:inherit org-meta-line :extend t :background "gainsboro" :foreground "dark slate gray")))))
;; dark
;; (custom-set-faces
;; '(default ((t (:inherit nil :extend nil :stipple nil :background "gray10" :foreground "#bbc0ca" :inverse-video nil :box nil :strike-through nil :overline nil :underline nil :slant normal :weight regular :height 98 :width normal :foundry "ADBO" :family "Source Code Pro"))))
;; '(mode-line ((t (:background "blue" :foreground "white" :box nil))))
;; '(org-block-begin-line ((t (:inherit org-meta-line :extend t :background "gray13" :foreground "tan4"))))
;; '(region ((t (:extend t :background "gray25"))))
;; '(shadow ((t (:foreground "SlateBlue1"))))
;; '(tab-bar ((t (:inherit variable-pitch :background "gray26" :foreground "white" :height 1.2))))
;; '(tab-bar-tab ((t (:inherit tab-bar :background "gray10" :box nil))))
;; '(tab-bar-tab-inactive ((t (:inherit tab-bar-tab :background "gray20")))))