summaryrefslogtreecommitdiff
path: root/config.org
blob: c01b1611ec43b329dd783eebaac73930fdf7b5e3 (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
#+TITLE: Michał Sapka's Emacs Config
#+AUTHOR: Michał Sapka (https://michal.sapka.me)
#+STARTUP: showall indent logdone


* General configuration

** Treesitter

#+begin_src emacs-lisp
(use-package treesit-auto
  :custom
  (treesit-auto-install 'prompt)
  :config
  (treesit-auto-add-to-auto-mode-alist 'all)
  (global-treesit-auto-mode))
#+end_src

** Varia

#+BEGIN_SRC emacs-lisp
  (setq vc-follow-symlinks t)
#+END_SRC


* LSP

I use Eglot for using LSPs. They are not perfect, but still very usable

#+BEGIN_SRC emacs-lisp
(require 'eglot)
#+END_SRC

** Ltex-ls

#+BEGIN_SRC emacs-lisp
  (with-eval-after-load 'eglot
    (add-to-list 'eglot-server-programs
                 '(text-mode . ("doas" "jexec" "ltex" "/root/ltex/bin/ltex-ls")))

    (setq-default eglot-workspace-configuration
                  '(:ltex (:additionalRules (:languageModel "/var/ngrams/")))))
#+END_SRC

* Writing

** Markdown mode

#+BEGIN_SRC emacs-lisp
(use-package markdown-mode)
#+END_SRC


* Local setup

#+begin_src emacs-lisp
  (setf epa-pinentry-mode 'loopback)
#+end_src