summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--arkta/arkta-cosmetic.el145
-rw-r--r--init.el146
2 files changed, 146 insertions, 145 deletions
diff --git a/arkta/arkta-cosmetic.el b/arkta/arkta-cosmetic.el
new file mode 100644
index 0000000..0960798
--- /dev/null
+++ b/arkta/arkta-cosmetic.el
@@ -0,0 +1,145 @@
1;; -*- lexical-binding: t -*-
2;; Copyright © 2018-2025 Uko Koknevics
3
4(use-package ansi-color
5 :hook (compilation-filter . ansi-color-compilation-filter)
6 :custom
7 (ansi-color-for-compilation-mode t))
8
9(use-package centaur-tabs
10 :straight t
11 :demand t
12 :init
13 (defun arkta/disable-centaur-tabs-mode ()
14 (centaur-tabs-local-mode +1))
15 :hook (dashboard-mode . arkta/disable-centaur-tabs-mode)
16 :bind (("C-x <C-right>" . centaur-tabs-forward)
17 ("C-x <right>" . centaur-tabs-forward)
18 ("C-x <C-left>" . centaur-tabs-backward)
19 ("C-x <left>" . centaur-tabs-backward))
20 :custom
21 (centaur-tabs-style "alternate")
22 (centaur-tabs-height 35)
23 (centaur-tabs-icon-type 'nerd-icons)
24 (centaur-tabs-set-icons t)
25 (centaur-tabs-gray-out-icons 'buffer)
26 (centaur-tabs-set-bar 'over)
27 (centaur-tabs-set-close-button nil)
28 (centaur-tabs-set-modified-marker t)
29 (centaur-tabs-modified-marker "●")
30 (centaur-tabs-cycle-scope 'tabs)
31 :config
32 (centaur-tabs-mode +1))
33
34(use-package display-fill-column-indicator
35 :straight '(display-fill-column-indicator :type built-in)
36 :demand t
37 :init
38 (defun arkta/disable-dfci ()
39 (display-fill-column-indicator-mode -1))
40 :hook (dashboard-mode . arkta/disable-dfci)
41 :config
42 (global-display-fill-column-indicator-mode +1))
43
44(use-package display-line-numbers
45 :straight '(display-line-numbers :type built-in)
46 :demand t
47 :init
48 (defun arkta/disable-dln ()
49 (display-line-numbers-mode -1))
50 :hook ((dashboard-mode help-mode) . arkta/disable-dln)
51 :config
52 (global-display-line-numbers-mode +1))
53
54(use-package doom-modeline
55 :straight t
56 :custom
57 (doom-modeline-bar-width 4)
58 (doom-modeline-battery t)
59 (doom-modeline-buffer-file-true-name t)
60 (doom-modeline-height 25)
61 (doom-modeline-hud t)
62 (doom-modeline-hud-min-height 6)
63 (doom-modeline-icon t)
64 (doom-modeline-percent-position nil)
65 (doom-modeline-project-detection 'project)
66 (doom-modeline-total-line-number t)
67 :config
68 (doom-modeline-mode +1))
69
70(use-package emojify
71 :straight t
72 :config
73 (global-emojify-mode +1))
74
75(use-package faces
76 :straight '(faces :type built-in)
77 :custom-face
78 (default ((t (:weight medium
79 :slant normal
80 :width normal
81 :font "Input Mono"
82 :height 130)))))
83
84(use-package git-gutter
85 :straight t
86 :config
87 (global-git-gutter-mode +1))
88
89(use-package hl-line
90 :straight '(hl-line :type built-in)
91 :config
92 (global-hl-line-mode +1))
93
94(use-package hl-todo
95 :straight t
96 :config
97 (global-hl-todo-mode +1))
98
99(use-package modus-themes
100 :straight t
101 :config
102 (load-theme 'modus-operandi))
103
104(use-package nerd-icons
105 :straight t
106 :init
107 (defun arkta/nerd-icons-maybe-install-fonts ()
108 (when (and (display-graphic-p)
109 (not (find-font (font-spec :family nerd-icons-font-family))))
110 ;; TODO: Maybe also reinstall them every month or so
111 (nerd-icons-install-fonts t)))
112 :hook ((after-init server-after-make-frame) . arkta/nerd-icons-maybe-install-fonts))
113
114(use-package rainbow-mode
115 :straight t
116 :init
117 (defun arkta/enable-rainbow ()
118 (rainbow-mode +1))
119 :hook (prog-mode . arkta/enable-rainbow))
120
121(use-package scroll-bar
122 :straight '(scroll-bar :type built-in)
123 :defer t
124 :config
125 (scroll-bar-mode -1))
126
127(use-package solaire-mode
128 :straight t
129 :config
130 (solaire-global-mode +1))
131
132(use-package time
133 :straight '(time :type built-in)
134 :custom
135 (display-time-default-load-average nil)
136 :config
137 (display-time-mode +1))
138
139(use-package tool-bar
140 :straight '(tool-bar :type built-in)
141 :defer t
142 :config
143 (tool-bar-mode -1))
144
145(provide 'arkta-cosmetic)
diff --git a/init.el b/init.el
index d4f3269..05184e0 100644
--- a/init.el
+++ b/init.el
@@ -198,6 +198,7 @@
198 198
199;; HIC SVNT DRACONES 199;; HIC SVNT DRACONES
200 200
201(require 'arkta-cosmetic)
201(require 'arkta-project) 202(require 'arkta-project)
202 203
203(use-package ace-window 204(use-package ace-window
@@ -210,11 +211,6 @@
210 :config 211 :config
211 (amx-mode +1)) 212 (amx-mode +1))
212 213
213(use-package ansi-color
214 :hook (compilation-filter . ansi-color-compilation-filter)
215 :custom
216 (ansi-color-for-compilation-mode t))
217
218(use-package c-ts-mode 214(use-package c-ts-mode
219 :after treesit 215 :after treesit
220 :straight '(c-ts-mode :type built-in) 216 :straight '(c-ts-mode :type built-in)
@@ -236,31 +232,6 @@
236 ((parent-is "field_declaration_list") parent-bol c-ts-mode-indent-offset) 232 ((parent-is "field_declaration_list") parent-bol c-ts-mode-indent-offset)
237 ,@(alist-get 'linux (c-ts-mode--indent-styles 'c)))))) 233 ,@(alist-get 'linux (c-ts-mode--indent-styles 'c))))))
238 234
239(use-package centaur-tabs
240 :straight t
241 :demand t
242 :init
243 (defun arkta/disable-centaur-tabs-mode ()
244 (centaur-tabs-local-mode +1))
245 :hook (dashboard-mode . arkta/disable-centaur-tabs-mode)
246 :bind (("C-x <C-right>" . centaur-tabs-forward)
247 ("C-x <right>" . centaur-tabs-forward)
248 ("C-x <C-left>" . centaur-tabs-backward)
249 ("C-x <left>" . centaur-tabs-backward))
250 :custom
251 (centaur-tabs-style "alternate")
252 (centaur-tabs-height 35)
253 (centaur-tabs-icon-type 'nerd-icons)
254 (centaur-tabs-set-icons t)
255 (centaur-tabs-gray-out-icons 'buffer)
256 (centaur-tabs-set-bar 'over)
257 (centaur-tabs-set-close-button nil)
258 (centaur-tabs-set-modified-marker t)
259 (centaur-tabs-modified-marker "●")
260 (centaur-tabs-cycle-scope 'tabs)
261 :config
262 (centaur-tabs-mode +1))
263
264(use-package cmake-ts-mode 235(use-package cmake-ts-mode
265 :after treesit 236 :after treesit
266 :straight '(cmake-ts-mode :type built-in) 237 :straight '(cmake-ts-mode :type built-in)
@@ -331,47 +302,11 @@
331 :config 302 :config
332 (dashboard-setup-startup-hook)) 303 (dashboard-setup-startup-hook))
333 304
334(use-package display-fill-column-indicator
335 :straight '(display-fill-column-indicator :type built-in)
336 :demand t
337 :init
338 (defun arkta/disable-dfci ()
339 (display-fill-column-indicator-mode -1))
340 :hook (dashboard-mode . arkta/disable-dfci)
341 :config
342 (global-display-fill-column-indicator-mode +1))
343
344(use-package display-line-numbers
345 :straight '(display-line-numbers :type built-in)
346 :demand t
347 :init
348 (defun arkta/disable-dln ()
349 (display-line-numbers-mode -1))
350 :hook ((dashboard-mode help-mode) . arkta/disable-dln)
351 :config
352 (global-display-line-numbers-mode +1))
353
354(use-package dockerfile-ts-mode 305(use-package dockerfile-ts-mode
355 :after treesit 306 :after treesit
356 :straight '(dockerfile-ts-mode :type built-in) 307 :straight '(dockerfile-ts-mode :type built-in)
357 :mode "Dockerfile\\'") 308 :mode "Dockerfile\\'")
358 309
359(use-package doom-modeline
360 :straight t
361 :custom
362 (doom-modeline-bar-width 4)
363 (doom-modeline-battery t)
364 (doom-modeline-buffer-file-true-name t)
365 (doom-modeline-height 25)
366 (doom-modeline-hud t)
367 (doom-modeline-hud-min-height 6)
368 (doom-modeline-icon t)
369 (doom-modeline-percent-position nil)
370 (doom-modeline-project-detection 'project)
371 (doom-modeline-total-line-number t)
372 :config
373 (doom-modeline-mode +1))
374
375(use-package ebuild-mode 310(use-package ebuild-mode
376 :straight t 311 :straight t
377 :mode ("\\.ebuild\\'" 312 :mode ("\\.ebuild\\'"
@@ -408,11 +343,6 @@
408 (add-hook 'before-save-hook #'elixir-format nil t)) 343 (add-hook 'before-save-hook #'elixir-format nil t))
409 :hook (elixir-mode . arkta/elixir-setup)) 344 :hook (elixir-mode . arkta/elixir-setup))
410 345
411(use-package emojify
412 :straight t
413 :config
414 (global-emojify-mode +1))
415
416(use-package elpher 346(use-package elpher
417 :straight t 347 :straight t
418 :commands (elpher) 348 :commands (elpher)
@@ -423,15 +353,6 @@
423 ;; This actually has to be hooked to after-init to be one of the first minor modes enabled 353 ;; This actually has to be hooked to after-init to be one of the first minor modes enabled
424 :hook (after-init . envrc-global-mode)) 354 :hook (after-init . envrc-global-mode))
425 355
426(use-package faces
427 :straight '(faces :type built-in)
428 :custom-face
429 (default ((t (:weight medium
430 :slant normal
431 :width normal
432 :font "Input Mono"
433 :height 130)))))
434
435(use-package gcmh 356(use-package gcmh
436 :straight t 357 :straight t
437 :custom 358 :custom
@@ -445,11 +366,6 @@
445 :straight t 366 :straight t
446 :mode "\\.gd\\'") 367 :mode "\\.gd\\'")
447 368
448(use-package git-gutter
449 :straight t
450 :config
451 (global-git-gutter-mode +1))
452
453(use-package go-ts-mode 369(use-package go-ts-mode
454 :after treesit 370 :after treesit
455 :straight '(go-ts-mode :type built-in) 371 :straight '(go-ts-mode :type built-in)
@@ -471,16 +387,6 @@
471 :straight t 387 :straight t
472 :mode "\\.hs\\'") 388 :mode "\\.hs\\'")
473 389
474(use-package hl-line
475 :straight '(hl-line :type built-in)
476 :config
477 (global-hl-line-mode +1))
478
479(use-package hl-todo
480 :straight t
481 :config
482 (global-hl-todo-mode +1))
483
484(use-package ibuffer 390(use-package ibuffer
485 :straight '(ibuffer :type built-in) 391 :straight '(ibuffer :type built-in)
486 :bind (("C-x C-b" . ibuffer) 392 :bind (("C-x C-b" . ibuffer)
@@ -545,11 +451,6 @@
545 :straight t 451 :straight t
546 :mode ("\\.md\\'" . gfm-mode)) 452 :mode ("\\.md\\'" . gfm-mode))
547 453
548(use-package modus-themes
549 :straight t
550 :config
551 (load-theme 'modus-operandi))
552
553(use-package nasm-mode 454(use-package nasm-mode
554 :straight t 455 :straight t
555 :mode ("\\.asm\\'" 456 :mode ("\\.asm\\'"
@@ -559,16 +460,6 @@
559 (set-tab-width 4)) 460 (set-tab-width 4))
560 :hook (nasm-mode . arkta/nasm-setup)) 461 :hook (nasm-mode . arkta/nasm-setup))
561 462
562(use-package nerd-icons
563 :straight t
564 :init
565 (defun arkta/nerd-icons-maybe-install-fonts ()
566 (when (and (display-graphic-p)
567 (not (find-font (font-spec :family nerd-icons-font-family))))
568 ;; TODO: Maybe also reinstall them every month or so
569 (nerd-icons-install-fonts t)))
570 :hook ((after-init server-after-make-frame) . arkta/nerd-icons-maybe-install-fonts))
571
572(use-package nix-mode 463(use-package nix-mode
573 :straight t 464 :straight t
574 :mode "\\.nix\\'") 465 :mode "\\.nix\\'")
@@ -609,17 +500,6 @@
609 :straight '(python :type built-in) 500 :straight '(python :type built-in)
610 :mode ("\\.py\\'" . python-ts-mode)) 501 :mode ("\\.py\\'" . python-ts-mode))
611 502
612(use-package rainbow-delimiters
613 :straight t
614 :hook ((emacs-lisp-mode lisp-mode scheme-mode) . rainbow-delimiters-mode))
615
616(use-package rainbow-mode
617 :straight t
618 :init
619 (defun arkta/enable-rainbow ()
620 (rainbow-mode +1))
621 :hook (prog-mode . arkta/enable-rainbow))
622
623(use-package ruby-ts-mode 503(use-package ruby-ts-mode
624 :after treesit 504 :after treesit
625 :straight '(ruby-ts-mode :type built-in) 505 :straight '(ruby-ts-mode :type built-in)
@@ -641,12 +521,6 @@
641 :config 521 :config
642 (put 'module 'scheme-indent-function 2)) 522 (put 'module 'scheme-indent-function 2))
643 523
644(use-package scroll-bar
645 :straight '(scroll-bar :type built-in)
646 :defer t
647 :config
648 (scroll-bar-mode -1))
649
650(use-package server 524(use-package server
651 :config 525 :config
652 (setq server-socket-dir (expand-file-name local-dir "server"))) 526 (setq server-socket-dir (expand-file-name local-dir "server")))
@@ -672,11 +546,6 @@
672 :repo "MatthewFluet/company-mlton") 546 :repo "MatthewFluet/company-mlton")
673 :hook (sml-mode . company-mlton-init))) 547 :hook (sml-mode . company-mlton-init)))
674 548
675(use-package solaire-mode
676 :straight t
677 :config
678 (solaire-global-mode +1))
679
680(use-package svelte-mode 549(use-package svelte-mode
681 :straight t 550 :straight t
682 :mode ("\\.svelte\\'" "\\.svx\\'")) 551 :mode ("\\.svelte\\'" "\\.svx\\'"))
@@ -688,24 +557,11 @@
688 ("C-s" . swiper-isearch) 557 ("C-s" . swiper-isearch)
689 ("C-r" . swiper-isearch-backward))) 558 ("C-r" . swiper-isearch-backward)))
690 559
691(use-package time
692 :straight '(time :type built-in)
693 :custom
694 (display-time-default-load-average nil)
695 :config
696 (display-time-mode +1))
697
698(use-package toml-ts-mode 560(use-package toml-ts-mode
699 :after treesit 561 :after treesit
700 :straight '(toml-ts-mode :type built-in) 562 :straight '(toml-ts-mode :type built-in)
701 :mode "\\.toml\\'") 563 :mode "\\.toml\\'")
702 564
703(use-package tool-bar
704 :straight '(tool-bar :type built-in)
705 :defer t
706 :config
707 (tool-bar-mode -1))
708
709(use-package treemacs 565(use-package treemacs
710 :straight t 566 :straight t
711 :commands (treemacs treemacs-select-window) 567 :commands (treemacs treemacs-select-window)