-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinit.rest.el
70 lines (62 loc) · 1.71 KB
/
init.rest.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
(when (package-installed-p 'haskell-mode)
(use-package haskell-mode)
(use-package lsp-haskell :ensure t
:hook
(haskell-mode . lsp)
(haskell-literate-mode . lsp)
)
(use-package flycheck-haskell :ensure t)
(use-package company-ghc
:if (package-installed-p 'company)
:ensure t
:config
(add-to-list 'company-backends 'company-ghc)
)
)
(when (package-installed-p 'tuareg)
(use-package tuareg
:after (smartparens)
:config
(defun kb/tuareg-prettify-symbols ()
(if (functionp 'prettify-symbols-mode)
(prettify-symbols-mode)))
:hook (tuareg-mode . kb/tuareg-prettify-symbols)
)
(use-package flycheck-ocaml :ensure t)
(use-package merlin
:config
(if (boundp 'company-box-backends-colors)
(add-to-list 'company-box-backends-colors
'(merlin-company-backend . (:all "light blue"
:candidate (:background "white" :foreground "black")
:annotation (:background "blue" :foreground "green")
:selected (:background "yellow" :foreground "dark blue")))))
:hook (tuareg-mode . merlin-mode))
)
(when (package-installed-p 'auctex)
(use-package auctex
:if (package-installed-p 'auctex)
:no-require t
:custom
(TeX-PDF-mode t)
(TeX-view-program-selection
'((output-dvi "DVI Viewer")
(output-pdf "PDF Viewer")
(output-html "HTML Viewer")))
(preview-image-type 'pnm)
:config
(message "AucTeX configuration"))
)
;; (use-package ispell
;; :config
;; (when (executable-find "enchant-2")
;; (setq ispell-program-name "enchant-2")))
;;(use-package rust-mode
;; :ensure t
;; )
;;(use-package cargo
;; :ensure t
;; )
;;(use-package rustic
;; :ensure t
;; )