-
Notifications
You must be signed in to change notification settings - Fork 0
/
emacs.el
61 lines (44 loc) · 1.23 KB
/
emacs.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
(column-number-mode 1)
(menu-bar-mode 0)
(scroll-bar-mode 0)
(tool-bar-mode 0)
(require 'package)
(setq-default frames-only-mode t
indent-tabs-mode nil
inhibit-splash-screen t
package-archives nil
package-enable-at-startup nil)
(package-initialize)
(load-theme 'wombat)
(global-set-key (kbd "C-x C-k") 'kill-this-buffer)
(global-set-key (kbd "s-u") 'revert-buffer)
(eval-when-compile
(require 'use-package))
(setq-default use-package-always-ensure t)
(use-package company)
(use-package crux
:config
(global-set-key (kbd "C-a") 'crux-move-beginning-of-line))
(use-package direnv
:config
(direnv-mode))
(use-package editorconfig
:config
(editorconfig-mode 1))
(use-package haskell-mode)
(use-package lsp-mode
:hook ((haskell-mode . lsp-deferred))
:commands (lsp lsp-deferred)
:config
(advice-add 'lsp :before #'direnv-update-environment)
(setq lsp-modeline-code-actions-enable nil))
(use-package lsp-ui
:hook (haskell-mode . lsp-ui-mode)
:config
(setq lsp-ui-doc-position 'bottom))
(use-package lsp-haskell)
(use-package nix-mode)
(use-package paredit)
(use-package whitespace-cleanup-mode
:config (global-whitespace-cleanup-mode t))
(use-package yaml-mode)