blob: 5d3ecb37863a8ef7a74dbc97091064b622379343 (
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
|
;;; -*- lexical-binding: t -*-
;;;
;;; General
;;;
(use-package eglot
:ensure nil
:bind
(:map eglot-mode-map
("C-c M-q" . eglot-format-buffer)))
(use-package ligature
:hook
(prog-mode . ligature-mode)
:config
(ligature-set-ligatures
'prog-mode
'(;; Group A
".." ".=" "..." "..<" "::" ":::" ":=" "::=" ";;" ";;;" "??" "???" ".?" "?."
":?" "?:" "?=" "**" "***" "/*" "*/" "/**"
;; Group B
"<-" "->" "-<" ">-" "<--" "-->" "<<-" "->>" "-<<" ">>-" "<-<" ">->" "<-|"
"|->" "-|" "|-" "||-" "<!--" "<#--" "<=" "=>" ">=" "<==" "==>" "<<=" "=>>"
"=<<" ">>=" "<=<" ">=>" "<=|" "|=>" "<=>" "<==>" "||=" "|=" "//=" "/=" "/=="
;; Group C
"<<" ">>" "<<<" ">>>" "<>" "<$" "$>" "<$>" "<+" "+>" "<+>" "<:" ":<" "<:<"
">:" ":>" "<~" "~>" "<~>" "<<~" "<~~" "~~>" "~~" "<|" "|>" "<|>" "<||"
"||>" "<|||" "|||>" "</" "/>" "</>" "<*" "*>" "<*>" ":?>"
;; Group D
"#(" "#{" "#[" "]#" "#!" "#?" "#=" "#_" "#_(" "##" "###" "####"
;; Group E
"[|" "|]" "[<" ">]" "{!!" "!!}" "{|" "|}" "{{" "}}" "{{--" "--}}" "{!--"
"//" "///" "!!"
;; Group F
"www" "@_" "&&" "&&&" "&=" "~@" "++" "+++" "/\\" "\\/" "_|_" "||"
;; Group G
"=:" "=:=" "=!=" "==" "===" "=/=" "=~" "~-" "^=" "__" "!=" "!==" "-~" "--"
"---")))
(use-package magit
:custom
(transient-levels-file "~/.cache/emacs/transient/levels.el")
(transient-values-file "~/.cache/emacs/transient/values.el")
(transient-history-file "~/.cache/emacs/transient/history.el"))
(use-package markdown-mode
:hook
(gfm-mode . flyspell-mode)
:config
(add-to-list 'major-mode-remap-alist '(markdown-mode . gfm-mode)))
(use-package projectile
:bind-keymap
("C-c p" . projectile-command-map)
:custom
(projectile-known-projects-file "~/.cache/emacs/projectile-bookmarks.eld")
(projectile-project-search-path '(("~/Developer/" . 2)))
:config
(projectile-mode +1))
(use-package rg)
;;;
;;; Ocaml
;;;
(use-package tuareg)
(use-package ocaml-eglot
:after (tuareg)
:hook
(tuareg-mode . ocaml-eglot)
(ocaml-eglot . eglot-ensure))
|