add evil-surround and evil-collection
[mesaoptimizer-emacs.git] / init.el
blob7d11cca0cd45a2b5b21bd1c0264fb47b7bfa6248
1 ;; install package.el
2 (require 'package)
3 (add-to-list 'package-archives
4 '("melpa" . "https://melpa.org/packages/") t)
5 (package-initialize)
6 (package-install 'use-package)
8 ;; install and enable evil
9 (use-package evil
10 :ensure t
11 :config
12 (evil-mode 1))
14 ;; install and enable evil-collection
15 ;; that is, evil keybindings for other parts of emacs
16 (use-package evil-collection
17 :after evil
18 :ensure t
19 :config
20 (evil-collection-init))
22 ;; install and enable evil-surround
23 (use-package evil-surround
24 :ensure t
25 :config
26 (global-evil-surround-mode 1))
28 ;; install markdown-mode
29 (use-package markdown-mode
30 :ensure t
31 :commands (markdown-mode gfm-mode)
32 :mode (("README\\.md\\'" . gfm-mode)
33 ("\\.md\\'" . markdown-mode)
34 ("\\.markdown\\'" . markdown-mode))
35 :init (setq markdown-command "multimarkdown"))
37 ;; install SLIME for Common Lisp hacking
38 (use-package slime
39 :ensure t
40 :config
41 (setq inferior-lisp-program "/usr/bin/sbcl")
42 (define-key lisp-mode-map (kbd "C-h f") 'slime-describe-function))
44 ;; wrap at the level of words in text-modes
45 (add-hook 'text-mode-hook #'visual-line-mode)