dotfiles/emacs/.emacs.d/config/init-built-ins.el
2021-02-21 11:27:48 -05:00

40 lines
917 B
EmacsLisp

;; -*- lexical-binding: t; -*-
;; Configuration for built-ins that don't fit anywhere else
(use-package custom
:straight (:type built-in)
:defer t
:config
(evil-collection-custom-setup))
(use-package view
:straight (:type built-in)
:defer t
:config
(evil-collection-view-setup))
(use-package simple
:straight (:type built-in)
:general
(leader-map "!" #'shell-command
"|" #'shell-command-on-region
";" #'async-shell-command)
(normal special-mode-map
"gr" #'revert-buffer
"q" #'quit-window)
(normal messages-buffer-mode-map
"gr" #'revert-buffer
"q" #'quit-window))
(use-package shell
:straight (:type built-in)
:general
(normal shell-mode-map "q" #'bury-buffer))
(use-package ediff
:straight (:type built-in)
:config
(setq ediff-window-setup-function #'ediff-setup-windows-plain))
(provide 'init-built-ins)