-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
90 lines (75 loc) · 2.49 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
;; Define directories for core and package configurations, and for savefiles
(defconst packages-dir (expand-file-name "packages" user-emacs-directory))
(defconst theme-dir (expand-file-name "theme" user-emacs-directory))
(add-to-list 'load-path packages-dir)
;; Load core and package configurations
;; (require 'pkg-elpaca)
(require 'pkg-ido)
(require 'pkg-corfu2)
(require 'pkg-org)
(require 'pkg-discover)
(require 'pkg-git)
;; (require 'pkg-company)
(require 'pkg-flycheck)
(require 'pkg-ssh)
(require 'pkg-docker)
(require 'pkg-feel)
(require 'pkg-lsp)
(require 'pkg-latex)
(require 'pkg-yaml)
(require 'pkg-php)
(require 'pkg-projectile)
(require 'pkg-bash)
(require 'pkg-search)
(require 'pkg-eshell)
(require 'pkg-rust)
(require 'pkg-emms)
(require 'pkg-web)
(require 'pkg-systemd)
(require 'pkg-multipleCursor)
(require 'pkg-mouvement)
;; (require 'pkg-dhall)
;; (require 'pkg-terraform-lsp)
;; (require 'pkg-go)
(require 'pkg-irc)
;; (require 'pkg-straight)
(require 'pkg-flutter)
(require 'pkg-terraform)
;; (require 'pkg-corfu)
;; (require 'pkg-combobulate)
(add-to-list 'custom-theme-load-path theme-dir)
;; (require 'pkg-theme)
(load-theme 'my-solarized-dark t)
;; (use-package 'gptel)
;; Llama.cpp offers an OpenAI compatible API
;; (gptel-make-openai "llama-cpp" ;Any name
;; :stream t ;Stream responses
;; :protocol "http"
;; :host "localhost:8000" ;Llama.cpp server location
;; :models '("test")) ;Any names, doesn't matter for Llama
;; ;; Execute the following only if emacs is compiled with treesit
;; (when (featurep 'treesit)
;; (use-package combobulate
;; :ensure t))
;; Execute the following only if emacs is compiled with treesit
;; (if (featurep 'treesit)
;; (require 'pkg-combobulate))
;; (native-compile-async "/home/michael/.emacs.d" 'recursively)
;; Remove .elc files on save
(use-package emacs
:config
(winner-mode 1)
(add-hook 'before-save-hook 'whitespace-cleanup)
(add-hook 'emacs-lisp-mode-hook
(lambda ()
(add-hook 'after-save-hook
(lambda ()
(when (file-exists-p (concat buffer-file-name "c"))
(delete-file (concat buffer-file-name "c"))))
nil t)))
(add-to-list 'auto-mode-alist '("\\.log\\'" . auto-revert-mode)))
(use-package no-littering
:ensure t
:config
(setq auto-save-file-name-transforms
`((".*" ,(no-littering-expand-var-file-name "auto-save/") t))))