about summary refs log tree commit diff stats
path: root/emacs-prelude/personal/lisp/init-misc.el
blob: eb5507a60ed035d34a6e63c86201f47e2bf92f20 (plain) (blame)
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
(prelude-require-package 'envrc)
(use-package envrc
 :diminish
 :config
 (envrc-global-mode))

(prelude-require-package 'rg)
(use-package rg
  :config
  (rg-enable-default-bindings))

(prelude-require-package 'restclient)
(use-package restclient
  :mode (("\\.http\\'" . restclient-mode)))

(prelude-require-package 'es-mode)
(use-package es-mode
  :mode "\.es\'")

(prelude-require-package 'multi-vterm)
(use-package multi-vterm
  :init (unbind-key "C-c t" prelude-mode-map)
  :bind (("C-c t" . multi-vterm-next)
         ("C-c C-M-t" . multi-vterm)
         (:map vterm-mode-map
               ("C-a" . vterm-send-C-a) ; TODO the crux binding is taking precedence
               ("C-c C-a" . vterm-send-C-a)
               ("M-[" . multi-vterm-prev)
               ("M-]" . multi-vterm-next))))

(use-package dired
  :ensure nil
  :custom
  (dired-kill-when-opening-new-dired-buffer t))

(prelude-require-package 'eshell-z)
(use-package eshell-z
  :defer t
  :hook (eshell-mode . (lambda () (require 'eshell-z))))

(prelude-require-package 'tagedit)
(use-package tagedit
  :config (tagedit-add-paredit-like-keybindings)
  :hook (html-mode . (lambda () (tagedit-mode 1))))

(provide 'init-misc)