summaryrefslogtreecommitdiff
path: root/init.el
blob: 4365d539a451daaf9582d8ad8330d2d27dbcad88 (plain)
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

;;; Code:

;; Load path
(add-to-list 'load-path "~/.emacs.d/lisp/")

;; Melpa support
(require 'package)
(add-to-list 'package-archives '("melpa" . "https://melpa.org/packages/") t)

;; https://stackoverflow.com/questions/31079204/emacs-package-install-script-in-init-file
(package-initialize)

(unless (package-installed-p 'use-package)
  (package-refresh-contents)
  (package-install 'use-package))
(eval-and-compile
  (setq use-package-always-ensure t
        use-package-expand-minimally t))

;; The default is 800 kilobytes.  Measured in bytes.
(setq gc-cons-threshold (* 50 1000 1000))

;; Profile emacs startup
(add-hook 'emacs-startup-hook
          (lambda ()
            (message "*** Emacs loaded in %s seconds with %d garbage collections."
                     (emacs-init-time "%.2f")
                     gcs-done)))

;; Theme
;; (use-package doom-themes
;;   :ensure t
;;   :config
;;   (load-theme 'doom-ayu-mirage t)
;;   (doom-themes-org-config)
;;   )


(use-package ef-themes
  :config
  (load-theme 'ef-light t))

;; (use-package kaolin-themes
;;   :config
;;   (load-theme 'kaolin-dark t)
;;   (kaolin-treemacs-theme))

(use-package autothemer
  :ensure t)
;(load-theme 'modus-operandi)
;(load-file "~/.emacs.d/lisp/kanagawa-theme.el")
;(load-theme 'kanagawa t)
;; (use-package material-theme
;;   :ensure t
;;   :config
;;   (load-theme 'material-light t))


(set-frame-parameter (selected-frame) 'alpha '(99 99))
(add-to-list 'default-frame-alist '(alpha 99 99))

(require 'general)
(require 'cpp)
(require 'go)
(require 'text)
(require 'org-custom)
(require 'web)
(require 'markdown)
(require 'lisp)
(require 'json)
(require 'python-custom)
;(require 'vc-annotate-lens-mode)
(require 'rust)
(require 'mk)


(require 'server)
(unless (server-running-p)
  (server-start))
(custom-set-variables
 ;; custom-set-variables was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(custom-safe-themes
   '("ec8ff5e2c8a9eb38e49a9bea6297c2194bbe0c03982630d66db1570f5ae83d90" "2ca3da7d36b0d326f984530a07be54b272b5c313b1361989acf747d8b5616162" "80214de566132bf2c844b9dee3ec0599f65c5a1f2d6ff21a2c8309e6e70f9242" "b3737f86b86d52c7d06820c10dc2609e9192627fc02dd654f4f9eb336f24f511" "a6f9dd4844bfbfaf1162f04ae3c52070154ef28d18b5d482566015cf429492b0" "f149d9986497e8877e0bd1981d1bef8c8a6d35be7d82cba193ad7e46f0989f6a" "3c83b3676d796422704082049fc38b6966bcad960f896669dfc21a7a37a748fa" "a27c00821ccfd5a78b01e4f35dc056706dd9ede09a8b90c6955ae6a390eb1c1e" default))
 '(package-selected-packages
   '(catppuccin-theme ef-themes org-attach-screenshot eglot treemacs-nerd-icons treemacs-all-the-icons nerd-icons kaolin-themes ement dart-mode yaml-mode meson-mode autothemer pyenv-mode pyvenv plantuml-mode ledger-mode centered-window perfect-margin-mode org-download helm-rg htmlize mood-line org-super-agenda material-theme esup glsl-mode fast-scroll yasnippet-snippets jsdoc helm-slack slack smart-mode-line magit rust-mode xref-js2 web-mode vterm-toggle vscode-dark-plus-theme treemacs-projectile tree-sitter-langs tide tern smartparens rtags req-package rainbow-mode pythonic python-mode perfect-margin org-roam org-notify org-modern org-bullets org-alert minimap markdown-mode json-mode js2-refactor js2-highlight-vars js-doc ido-vertical-mode hl-todo highlight-thing highlight-indent-guides helm-projectile helm-posframe helm-ag good-scroll go-mode git-gutter-fringe git-commit flycheck-irony evil eslint-fix emojify eldoc-box drag-stuff doom-themes dashboard css-eldoc counsel company-quickhelp company-irony cmake-mode cmake-ide auctex all-the-icons ac-js2))
 '(safe-local-variable-values '((js-indent-level . 4)))
 '(warning-suppress-types '((comp))))
(custom-set-faces
 ;; custom-set-faces was added by Custom.
 ;; If you edit it by hand, you could mess it up, so be careful.
 ;; Your init file should contain only one such instance.
 ;; If there is more than one, they won't work right.
 '(org-block ((t (:inherit fixed-pitch))))
 '(org-code ((t (:inherit (shadow fixed-pitch)))))
 '(org-document-info ((t (:foreground "dark orange"))))
 '(org-document-info-keyword ((t (:inherit (shadow fixed-pitch)))))
 '(org-document-title ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka" :height 1.3 :weight bold))))
 '(org-indent ((t (:inherit (org-hide fixed-pitch)))))
 '(org-level-1 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka" :height 1.3 :weight bold))))
 '(org-level-2 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka" :height 1.2 :weight bold))))
 '(org-level-3 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka" :height 1.1))))
 '(org-level-4 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka" :height 1.0))))
 '(org-level-5 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka"))))
 '(org-level-6 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka"))))
 '(org-level-7 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka"))))
 '(org-level-8 ((t (:inherit default :weight normal :foreground "#212121" :extend t :background nil :box nil :font "Iosevka"))))
 '(org-link ((t (:foreground "royal blue" :underline t))))
 '(org-meta-line ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 '(org-property-value ((t (:inherit fixed-pitch))))
 '(org-special-keyword ((t (:inherit (font-lock-comment-face fixed-pitch)))))
 '(org-table ((t (:inherit fixed-pitch :foreground "#83a598"))))
 '(org-tag ((t (:inherit (shadow fixed-pitch) :weight bold :height 0.8))))
 '(org-verbatim ((t (:inherit (shadow fixed-pitch))))))