-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.el
747 lines (628 loc) · 23 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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
;;
;; Author: Max Penet <m@qbits.cc>
;; URL: https://github.com/mpenet/emax
;; Keywords: emacs config
;;; Commentary:
;; Just my Emacs config
;;; License:
;; Copyright (C) 2023 Max Penet
;; 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
;; <https://www.gnu.org/licenses/>.
;;; Code:
;;; bootstrap via straight el
(setq straight-use-package-by-default t
straight-repository-branch "develop"
straight-recipes-gnu-elpa-use-mirror t
straight-built-in-pseudo-packages '(which-function-mode
isearch
dired
bookmark
;; eglot
org
project
js-mode
uniquify
inferior-lisp
visual-line-mode))
(defvar bootstrap-version)
(let ((bootstrap-file
(expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
(bootstrap-version 5))
(unless (file-exists-p bootstrap-file)
(with-current-buffer
(url-retrieve-synchronously
"https://raw.githubusercontent.com/raxod502/straight.el/develop/install.el"
'silent 'inhibit-cookies)
(goto-char (point-max))
(eval-print-last-sexp)))
(load bootstrap-file nil 'nomessage))
(straight-use-package 'use-package)
;;; Packages
(use-package emacs
:custom
(load-prefer-newer t)
(warning-minimum-level :error)
(gc-cons-threshold 100000000)
(read-process-output-max (* 1024 1024))
(auto-window-vscroll nil)
(large-file-warning-threshold 100000000)
(scroll-bar-mode nil)
(tool-bar-mode nil)
(menu-bar-mode nil)
(kill-ring-max 150)
(browse-url-browser-function 'browse-url-generic)
(browse-url-generic-program "open")
(truncate-partial-width-windows nil)
(backup-inhibited t)
(make-backup-files nil)
(auto-save-default nil)
(auto-save-list-file-prefix nil)
(save-place nil)
(vc-follow-symlinks nil)
(inhibit-startup-message t)
(frame-inhibit-implied-resize t)
(initial-scratch-message nil)
(initial-major-mode 'fundamental-mode) ;; skip scratch
(mouse-yank-at-point t)
(which-function-mode t)
(set-mark-command-repeat-pop t)
(completion-cycle-threshold 3)
;; Enable indentation+completion using the TAB key. `completion-at-point' is often bound to M-TAB.
(tab-always-indent 'complete)
(hippie-expand-try-functions-list
'(try-expand-all-abbrevs try-expand-dabbrev
try-expand-dabbrev-all-buffers
try-expand-dabbrev-from-kill
try-complete-file-name-partially
try-complete-file-name
try-expand-all-abbrevs
try-expand-list
try-expand-line
try-complete-lisp-symbol-partially
try-complete-lisp-symbol))
(indent-tabs-mode nil)
(tab-width 4)
(fill-column 80)
;; add the current column number to the mode bar
(column-number-mode t)
;; typed text replaces the selection if the selection is active
(delete-selection-mode t)
(set-language-environment "UTF-8")
(cursor-in-non-selected-windows nil)
;; case insensitive searches
(case-fold-search t)
(minibuffer-prompt-properties
'(read-only t cursor-intangible t face minibuffer-prompt))
(enable-recursive-minibuffers t)
;; Emacs 28+: Hide commands in M-x which do not work in the current mode.
;; Vertico commands are hidden in normal buffers.
(read-extended-command-predicate
#'command-completion-default-include-p)
(custom-file (expand-file-name "custom.el" user-emacs-directory))
(inferior-lisp-program "/opt/homebrew/bin/sbcl")
:bind
(("M-j" . nil)
("M-r" . nil)
("M-c" . nil)
("C-x m" . execute-extended-command)
("C-x C-m" . execute-extended-command)
("C-M-h" . backward-kill-word)
("C-M-<backspace>" . backward-kill-word)
("RET" . newline-and-indent)
("<C-return>" . newline-and-indent)
("<M-return>" . comment-or-uncomment-region)
("C-x C-o" . other-window)
("C-x C-k" . kill-buffer)
("C-x . " . delete-other-windows)
("C-x ," . split-window-below)
("C-x ." . split-window-right)
("C-x l" . delete-window)
("C-x C-r" . query-replace)
("M-i" . hippie-expand)
("M-i" . hippie-expand)
("M-j d" . xref-find-definitions)
("M-j M-d" . xref-find-definitions)
("M-j r" . xref-find-references)
("M-j M-r" . xref-find-references)
("C-<next>" . text-scale-increase)
("M-<prior>" . text-scale-decrease)
("M-j M-r" . xref-find-references))
:custom-face (eglot-highlight-symbol-face ((t (:inherit 'highlight :background "#434C5E"))))
:init
(set-face-attribute 'default nil
:font "PragmataPro Mono Liga"
:weight 'normal
:height (let ((w (x-display-pixel-width)))
(cond ((>= w 3456) 180) ; mbp screen
((>= w 3272) 160) ; plugged
(t 180)))) ;; default
;; full screen
(add-to-list 'default-frame-alist '(fullscreen . maximized))
(add-to-list 'default-frame-alist '(undecorated . t))
(defalias 'yes-or-no-p 'y-or-n-p)
;; Do not allow the cursor in the minibuffer prompt
(add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)
(defun er-auto-create-missing-dirs ()
(let ((target-dir (file-name-directory buffer-file-name)))
(unless (file-exists-p target-dir)
(make-directory target-dir t))))
(add-to-list 'find-file-not-found-functions #'er-auto-create-missing-dirs)
(defun save-buffer-as-is ()
"Save file \"as is\", that is in read-only-mode. Useful when you
want to avoid having the hooks run"
(interactive)
(if buffer-read-only
(save-buffer)
(read-only-mode 1)
(save-buffer)
(read-only-mode 0)))
;; config changes made through the customize UI will be stored here
(when (file-exists-p custom-file)
(load custom-file)))
(use-package diminish)
(use-package ligature-pragmatapro
:config
(ligature-pragmatapro-setup)
(global-ligature-mode))
(use-package elec-pair
:config
(electric-pair-mode +1))
;; uniquify buffer names: append path if buffer names are identical
(use-package uniquify
:custom (uniquify-buffer-name-style 'post-forward-angle-brackets))
(use-package display-line-numbers
:hook ((prog-mode conf-mode) . display-line-numbers-mode)
:custom (display-line-numbers-width 3))
(use-package visual-line-mode
:hook ((org-mode . visual-line-mode)))
(use-package visual-fill-column
:custom
(visual-fill-column-width 110)
(visual-fill-column-center-text t)
:hook ((org-mode . visual-fill-column-mode)))
(use-package winner
:custom
(winner-dont-bind-my-keys t)
:config
(winner-mode +1)
:bind (("C-x C-u" . winner-undo)
("C-x u" . winner-undo)))
(use-package ws-butler
:hook ((prog-mode . ws-butler-mode)))
(use-package isearch
:custom
(isearch-lazy-count t)
(lazy-count-prefix-format "(%s/%s) ")
(lazy-count-suffix-format nil)
(isearch-allow-scroll 'unlimited)
:bind (:map isearch-mode-map
("C-c C-o" . isearch-occur)))
(use-package which-key
:diminish
:custom
(which-key-idle-delay 3000)
(which-key-idle-secondary-delay 0.05)
:config
(which-key-mode +1))
(use-package wgrep)
(use-package orderless
:custom
(completion-styles '(orderless basic))
(completion-category-defaults nil)
(completion-category-overrides '((file (styles basic partial-completion)))))
;; Persist history over Emacs restarts. Vertico sorts by history position.
(use-package savehist
:init
(savehist-mode))
(use-package vertico
:init
(vertico-mode)
:bind ((:map minibuffer-local-map
("C-c C-o" . embark-export)
("C-l" . embark-act))))
(use-package xref
:custom (xref-prompt-for-identifier nil))
(use-package consult
:custom
;; Use Consult to select xref locations with preview
(xref-show-xrefs-function #'consult-xref)
(xref-show-definitions-function #'consult-xref)
;; Enable automatic preview at point in the *Completions* buffer. This is
;; relevant when you use the default completion UI.
:hook (completion-list-mode . consult-preview-at-point-mode)
:bind (("C-t" . consult-line)
("C-x b" . consult-buffer)
("M-g M-g" . consult-goto-line)
("C-x C-g" . consult-git-grep)
("C-x C-i" . consult-imenu-multi)
("C-c C-i" . consult-imenu)
("M-j M-f" . consult-flymake)
("C-x j" . consult-bookmark)))
(use-package embark
:config
(add-hook 'embark-post-action-hook #'embark-collect--update-linked)
(add-hook 'embark-collect-post-revert-hook
(defun resize-embark-collect-window (&rest _)
(when (memq embark-collect--kind '(:live :completions))
(fit-window-to-buffer (get-buffer-window)
(floor (frame-height) 2) 1)))))
(use-package embark-consult
:after (embark consult)
:demand t ; only necessary if you have the hook below
;; if you want to have consult previews as you move around an
;; auto-updating embark collect buffer
:hook
(embark-collect-mode . embark-consult-preview-minor-mode))
(use-package marginalia
:init
(marginalia-mode))
(use-package nerd-icons)
(use-package nerd-icons-completion
:straight (nerd-icons-completion :type git :host github :repo "rainstormstudio/nerd-icons-completion")
:config
(nerd-icons-completion-mode)
(add-hook 'marginalia-mode-hook #'nerd-icons-completion-marginalia-setup))
(use-package nerd-icons-dired
:straight (nerd-icons-dired :type git :host github :repo "rainstormstudio/nerd-icons-dired")
:hook
(dired-mode . nerd-icons-dired-mode))
(use-package nerd-icons-ibuffer
:straight (nerd-icons-ibuffer :type git :host github :repo "seagle0128/nerd-icons-ibuffer")
:hook (ibuffer-mode . nerd-icons-ibuffer-mode))
(use-package project
:custom
(project-ignores '("\\.clj-kondo" "\\.cpcache" "*\\.cp"))
(project-switch-commands #'project-find-file)
:bind (("C-x f" . project-find-file)))
(use-package hl-todo
:custom (hl-todo-highlight-punctuation ":")
:config (global-hl-todo-mode))
(use-package solaire-mode
:config (solaire-global-mode))
(use-package dired
:custom
(dired-recursive-deletes 'always)
(dired-recursive-copies 'always)
;; if there is a dired buffer displayed in the next window, use its
;; current subdir, instead of the current subdir of this dired buffer
(dired-dwim-target nil)
:config
;; dired - reuse current buffer by pressing 'a'
(put 'dired-find-alternate-file 'disabled nil)
;; enable some really cool extensions like C-x C-j(dired-jump)
(require 'dired-x))
(use-package diredfl
:config (diredfl-global-mode 1))
(use-package magit
:bind (("C-x g" . magit-status)
("C-c C-g" . magit-status)))
(use-package autorevert
:diminish auto-revert-mode)
(use-package gist)
(use-package expand-region
:bind (("C-o" . er/expand-region)
("C-M-o" . er/contract-region)))
(use-package eldoc
:custom (eldoc-echo-area-use-multiline-p nil)
:straight (eldoc :source gnu-elpa-mirror)
:diminish)
(use-package bookmark
:config
(defun mpenet--bookmark-set ()
(interactive)
(bookmark-set-internal nil
(concat (buffer-name) " "
(which-function) " "
(number-to-string (line-number-at-pos)) ":"
(number-to-string (current-column)))
'overwrite))
:bind (("C-x r r" . mpenet--bookmark-set)
("C-x r d" . bookmark-delete)))
(use-package paredit
:init
(add-hook 'emacs-lisp-mode-hook #'paredit-mode)
(add-hook 'lisp-interaction-mode-hook #'paredit-mode)
(add-hook 'clojure-mode-hook #'paredit-mode)
(add-hook 'cider-mode-hook #'paredit-mode)
(add-hook 'cider-repl-mode-hook #'paredit-mode)
(add-hook 'emacs-lisp-mode-hook #'paredit-mode)
:config
(defun my-paredit-delete ()
"If a region is active check if it is balanced and delete it otherwise
fallback to regular paredit behavior"
(interactive)
(if mark-active
(paredit-delete-region (region-beginning) (region-end))
(paredit-backward-delete)))
;; (define-key paredit-mode-map (kbd "C-j") nil)
:bind (:map paredit-mode-map
("C-M-h" . paredit-backward-kill-word)
("C-h" . my-paredit-delete)
("<delete>" . my-paredit-delete)
("DEL" . my-paredit-delete)
("RET" . nil)
("M-r" . nil)
("C-j" . nil)
("C-M-j"))
:diminish)
(use-package clojure-mode
:custom (cider-edit-jack-in-command t)
:init (add-to-list 'interpreter-mode-alist '("bb" . clojure-mode))
:mode "\\.bb\\'"
:config
(add-hook 'clojure-mode-hook #'paredit-mode))
(use-package cape
:init
;; Add `completion-at-point-functions', used by `completion-at-point'.
(add-to-list 'completion-at-point-functions #'cape-file)
(add-to-list 'completion-at-point-functions #'cape-dabbrev)
(add-to-list 'completion-at-point-functions #'cape-keyword))
(use-package cider
:diminish
:custom
;; cider-font-lock-dynamically nil ; use lsp semantic tokens
(nrepl-log-messages t)
(cider-eldoc-display-for-symbol-at-point nil) ; use lsp
(cider-prompt-for-symbol nil)
(cider-use-xref nil)
:custom-face (cider-debug-code-overlay-face
((t (:box (:line-width -1 :color "orange")))))
:config
(add-hook 'cider-repl-mode-hook #'paredit-mode)
;; use lsp
;; (add-hook 'cider-mode-hook
;; (lambda ()
;; (remove-hook 'completion-at-point-functions #'cider-complete-at-point t)))
(defun +eglot-completion-at-point ()
(when (boundp 'eglot-completion-at-point)
(funcall 'eglot-completion-at-point)))
(defalias 'cape-cider-eglot
(cape-capf-super #'cider-complete-at-point
#'+eglot-completion-at-point))
(defun mpenet/cider-capf ()
(add-to-list 'completion-at-point-functions
#'cape-cider-eglot))
:hook ((cider-mode . mpenet/cider-capf)
(cider-repl-mode . mpenet/cider-capf)
(cider-repl-mode . company-mode))
:bind (:map
cider-mode-map
("C-c C-d" . cider-debug-defun-at-point)
("C-c d" . cider-debug-defun-at-point)
:map
cider-repl-mode-map
("C-j" . nil)))
;;; eglot
(use-package eglot
:straight (eglot :source gnu-elpa-mirror)
:ensure t
:commands (eglot eglot-ensure)
:custom-face (eglot-highlight-symbol-face ((t (:inherit 'highlight :background "#434C5E"))))
:custom
(eglot-sync-connect nil)
(eglot-autoshutdown t)
(eglot-confirm-server-edits nil)
(eglot-extend-to-xref t)
(eglot-events-buffer-config '(:size 0))
:hook ((clojure-mode . eglot-ensure)
(clojurec-mode . eglot-ensure)
(clojurescript-mode . eglot-ensure)
(before-save . (lambda ()
(when (eglot-managed-p)
(eglot-format-buffer)))))
:bind (:map eglot-mode-map
("M-l M-l" . eglot-code-actions))
:config
;; (add-hook 'eglot-managed-mode-hook #'eglot-inlay-hints-mode)
(diminish 'eldoc-mode)
(advice-add 'eglot--format-markup
:around (lambda (orig &rest args) (let ((inhibit-read-only t)) (apply orig args))))
(fset #'jsonrpc--log-event #'ignore))
(use-package jarchive
:straight (jarchive :type git
:host nil
:repo "https://git.sr.ht/~dannyfreeman/jarchive")
:hook ((clojure-mode . jarchive-setup)
(clojurec-mode . jarchive-setup)))
(use-package eglot-booster
:straight (eglot-booster :type git :host github :repo "jdtsmith/eglot-booster")
:after eglot
:config (eglot-booster-mode))
(use-package company
:diminish
:bind (("TAB" . company-indent-or-complete-common)
:map company-active-map
("C-n" . company-select-next)
("C-p" . company-select-previous)
("TAB" . company-complete-selection))
:custom
(company-frontends '(company-pseudo-tooltip-unless-just-one-frontend
;; company-preview-if-just-one-frontend
company-preview-frontend
company-echo-metadata-frontend))
(company-tooltip-align-annotations t)
(company-minimum-prefix-length 3)
(company-require-match nil)
(company-idle-delay 0.1)
:hook (prog-mode . company-mode))
(use-package company-quickhelp
:custom (company-quickhelp-use-propertized-text t)
:config (company-quickhelp-mode))
(use-package flymake
:custom-face (flymake-end-of-line-diagnostics-face ((t :height 0.8 :box nil :slant italic)))
:custom (flymake-show-diagnostics-at-end-of-line 'short))
(use-package js-mode
:defer t
:mode ("\\.json$" . js-mode)
:custom
(js-indent-level tab-width))
(use-package fennel-mode
:hook (fennel-mode . paredit-mode)
:bind (:map fennel-mode-map
("C-c C-c" . lisp-eval-defun)))
(use-package groovy-mode)
(use-package inferior-lisp
:hook (inferior-lisp-mode . paredit-mode))
(use-package lua-mode)
(use-package rainbow-mode
:config
(add-hook 'prog-mode-hook #'rainbow-mode)
:diminish)
(use-package css-mode
:custom (css-indent-offset tab-width)
:config
(add-hook 'css-mode-hook 'rainbow-mode))
(use-package zencoding-mode
:custom (zencoding-preview-default nil)
:config
(add-hook 'sgml-mode-hook 'zencoding-mode))
(use-package htmlize
:custom (org-export-htmlize-output-type 'css))
(use-package markdown-mode
:custom (markdown-fontify-code-blocks-natively t)
:mode (("\\.md\\'" . gfm-mode)
("\\.markdown\\'" . gfm-mode))
:config
(add-to-list 'markdown-code-lang-modes '("clj" . clojure-mode)))
(use-package yaml-mode
:defer t)
(use-package adoc-mode
:mode "\\.adoc\\'")
(use-package rst
:bind (:map rst-mode-map
("C-M-h" . backward-kill-word)))
(use-package restclient
:mode ("\\.http$". restclient-mode))
(use-package gist)
(use-package yasnippet
:custom
(yas-prompt-functions '(yas-dropdown-prompt yas-x-prompt))
(yas-indent-line nil)
:config
(yas-global-mode t)
:diminish yas-minor-mode)
(use-package clojure-snippets)
(use-package doom-modeline
:custom
(doom-modeline-check-simple-format t) ; show full flymake info
(doom-modeline-buffer-encoding nil)
(doom-modeline-indent-info nil)
:init (doom-modeline-mode 1))
(use-package minions
:disabled
:custom (minions-prominent-modes '(flymake-mode))
:config (minions-mode 1))
(use-package doom-themes
:disabled
:config
(let ((theme 'doom-nord))
(load-theme theme t)
(enable-theme theme))
(set-face-attribute 'compilation-warning nil :slant 'normal))
(use-package kaolin-themes
:straight (kaolin-themes :type git :host github :repo "mpenet/emacs-kaolin-themes" :branch "mpenet/devel")
:custom
(kaolin-themes-modeline-border nil)
(kaolin-themes-italic-comments t)
(kaolin-themes-distinct-fringe t)
(kaolin-mono-dark-alt-bg t)
:config
(load-theme 'kaolin-mono-dark t))
(use-package symbol-overlay
:custom-face
(symbol-overlay-face-1 ((t (:background "dodger blue" :foreground "black"))))
(symbol-overlay-face-2 ((t (:background "hot pink" :foreground "black"))))
(symbol-overlay-face-3 ((t (:background "yellow" :foreground "black"))))
(symbol-overlay-face-4 ((t (:background "orchid" :foreground "black"))))
(symbol-overlay-face-5 ((t (:background "red" :foreground "black"))))
(symbol-overlay-face-6 ((t (:background "salmon" :foreground "black"))))
(symbol-overlay-face-7 ((t (:background "spring green" :foreground "black"))))
(symbol-overlay-face-8 ((t (:background "turquoise" :foreground "black"))))
:bind (("M-o" . nil)
("M-o o". symbol-overlay-put)
("M-o M-o". symbol-overlay-put)
("M-o r" . symbol-overlay-remove-all)
("M-o M-r" . symbol-overlay-remove-all)
("M-o s" . symbol-overlay-toggle-in-scope)
("M-o M-s" . symbol-overlay-toggle-in-scope)))
(use-package rainbow-delimiters
:hook (prog-mode . rainbow-delimiters-mode))
(use-package paren
:config
(show-paren-mode +1)
(set-face-foreground 'show-paren-match "red"))
(use-package emojify
:custom
(emojify-display-style 'image)
;; only replace unicode and github, no ascii)
(emojify-emoji-styles '(unicode github))
;; echo the actual underlying character to the minibuffer when point
;; is over them so we don't mess with the displayed buffer itself
(emojify-point-entered-behaviour 'echo)
:config
(global-emojify-mode 1))
(use-package jinx
:disabled
:diminish
:hook ((text-mode prog-mode conf-mode) . jinx-mode)
:bind (("M-j c" . jinx-correct)
("M-j l" . jinx-languages)))
(use-package scratch)
(use-package dockerfile-mode)
(use-package eshell
:after esh-mode
:bind (:map eshell-mode-map
("C-r" . consult-history)))
(use-package esh-autosuggest
:hook (eshell-mode . esh-autosuggest-mode))
(use-package exec-path-from-shell
:config
(exec-path-from-shell-initialize))
(use-package sudo-edit)
(use-package org-modern
:custom (org-startup-indented t)
:after org
:hook (org-mode . org-modern-mode))
(use-package org
:custom
(org-babel-clojure-backend 'cider)
(org-src-tab-acts-natively t)
(org-confirm-babel-evaluate nil)
(org-src-fontify-natively t)
:config
(org-babel-do-load-languages 'org-babel-load-languages
'((shell . t)
(js . t)
(emacs-lisp . t)
(clojure . t)
(python . t))))
(use-package sly)
(use-package sly-overlay)
(use-package popper
:bind (("C-j" . popper-toggle)
("C-M-j" . popper-cycle)
("C-M-t" . popper-toggle-type))
:init
(setq popper-reference-buffers '("\\*Messages\\*"
"\\*eshell\\*"
"Output\\*$"
"\\*Async Shell Command\\*"
sly-mrepl-mode
cider-repl-mode
help-mode
compilation-mode)
popper-group-function #'popper-group-by-project
popper-echo-dispatch-keys '(?0 ?1 ?2 ?3 ?4 ?5 ?6 ?7 ?8 ?9)
popper-echo-dispatch-actions t)
(popper-mode +1)
(popper-echo-mode +1))
(use-package gptel)