summaryrefslogtreecommitdiff
path: root/emacs.d
diff options
context:
space:
mode:
Diffstat (limited to 'emacs.d')
-rw-r--r--emacs.d/init.el74
1 files changed, 74 insertions, 0 deletions
diff --git a/emacs.d/init.el b/emacs.d/init.el
new file mode 100644
index 0000000..d401c49
--- /dev/null
+++ b/emacs.d/init.el
@@ -0,0 +1,74 @@
+;; disable toolbars
+(menu-bar-mode -1)
+(tool-bar-mode -1)
+(scroll-bar-mode -1)
+;; # apt install fonts-mononoki
+(set-face-attribute 'default nil
+ :family "mononoki"
+ :height 120
+ :weight 'normal
+ :width 'normal)
+
+;;; packages stuff
+(custom-set-variables
+ '(custom-safe-themes
+ '("01cf34eca93938925143f402c2e6141f03abb341f27d1c2dba3d50af9357ce70" default))
+ '(helm-minibuffer-history-key "M-p")
+ '(inhibit-startup-screen t)
+ '(package-selected-packages
+ '(company doom-themes solarized-theme evil-tutor undo-fu evil-collection flycheck-rust rust-mode evil-visual-mark-mode tidal racket-mode helm helm-flycheck lsp-mode lsp-ui magit evil lsp-haskell use-package)))
+(require 'package)
+(add-to-list 'package-archives (cons "melpa" "https://melpa.org/packages/") t)
+(package-initialize)
+;; Theme
+(load-theme 'doom-laserwave t)
+;; Programming languages
+(use-package flycheck
+ :ensure t
+ :init
+ (global-flycheck-mode t))
+(use-package lsp-mode
+ :ensure t
+ :config
+ (setq lsp-prefer-flymake nil)
+ :hook (haskell-mode . lsp-deferred)
+ (rust-mode . lsp-deferred)
+ :commands lsp)
+(use-package lsp-ui
+ :ensure t
+ :commands lsp-ui-mode)
+(use-package lsp-haskell
+ :ensure t
+ )
+(with-eval-after-load 'rust-mode
+ (add-hook 'flycheck-mode-hook #'flycheck-rust-setup))
+(add-hook 'prog-mode-hook 'linum-mode)
+;; Evil
+(use-package evil
+ :ensure t
+ :init
+ (setq evil-want-keybinding nil)
+ (setq evil-want-fine-undo nil)
+ (setq evil-undo-system 'undo-fu)
+ :config
+ (evil-mode 1))
+(use-package evil-collection
+ :after evil
+ :ensure t
+ :config
+ (evil-collection-init))
+;; Helm
+(use-package helm
+ :ensure t
+ :bind (("M-x" . helm-M-x)
+ ("\C-x\C-f" . helm-find-files))
+ :config
+ (setq helm-M-x-fuzzy-match t)
+ (define-key evil-ex-map "x" 'helm-M-x)
+ (define-key evil-ex-map "b" 'helm-mini)
+ (define-key evil-ex-map "e" 'helm-find-files))
+
+(use-package magit
+ :ensure t
+ :bind (("C-x g". 'magit-status)))
+