2021-02-21 02:59:11 +00:00
|
|
|
;; -*- lexical-binding: t; -*-
|
|
|
|
|
2021-02-20 23:23:42 +00:00
|
|
|
;; Configuration for built-ins that don't fit anywhere else
|
|
|
|
(use-package custom
|
|
|
|
:straight (:type built-in)
|
2021-02-21 03:01:03 +00:00
|
|
|
:defer t
|
2021-02-20 23:23:42 +00:00
|
|
|
:config
|
|
|
|
(evil-collection-custom-setup))
|
|
|
|
|
|
|
|
(use-package view
|
|
|
|
:straight (:type built-in)
|
2021-02-21 03:01:03 +00:00
|
|
|
:defer t
|
2021-02-20 23:23:42 +00:00
|
|
|
:config
|
|
|
|
(evil-collection-view-setup))
|
|
|
|
|
2021-02-20 23:37:39 +00:00
|
|
|
(use-package simple
|
|
|
|
:straight (:type built-in)
|
|
|
|
:general
|
2021-02-21 03:01:15 +00:00
|
|
|
(leader-map "!" #'shell-command
|
|
|
|
"|" #'shell-command-on-region
|
|
|
|
";" #'async-shell-command)
|
2021-02-20 23:37:39 +00:00
|
|
|
(normal special-mode-map
|
|
|
|
"gr" #'revert-buffer
|
|
|
|
"q" #'quit-window)
|
|
|
|
(normal messages-buffer-mode-map
|
|
|
|
"gr" #'revert-buffer
|
|
|
|
"q" #'quit-window))
|
|
|
|
|
2021-02-21 03:01:15 +00:00
|
|
|
(use-package shell
|
|
|
|
:straight (:type built-in)
|
|
|
|
:general
|
|
|
|
(normal shell-mode-map "q" #'bury-buffer))
|
|
|
|
|
2021-02-21 16:27:48 +00:00
|
|
|
(use-package ediff
|
2021-02-26 15:29:01 +00:00
|
|
|
:defer t
|
2021-02-21 16:27:48 +00:00
|
|
|
:straight (:type built-in)
|
|
|
|
:config
|
2021-03-03 14:26:58 +00:00
|
|
|
(setq ediff-window-setup-function #'ediff-setup-windows-plain)
|
|
|
|
(evil-collection-ediff-setup)
|
|
|
|
|
|
|
|
;; Restore window configuration after an ediff session
|
|
|
|
(defvar ediff-last-windows nil)
|
|
|
|
|
|
|
|
(defun store-pre-ediff-winconfig ()
|
|
|
|
(setq ediff-last-windows (current-window-configuration)))
|
|
|
|
|
|
|
|
(defun restore-pre-ediff-winconfig ()
|
|
|
|
(set-window-configuration ediff-last-windows))
|
|
|
|
|
|
|
|
(add-hook 'ediff-before-setup-hook #'store-pre-ediff-winconfig)
|
|
|
|
(add-hook 'ediff-quit-hook #'restore-pre-ediff-winconfig))
|
2021-02-21 16:27:48 +00:00
|
|
|
|
2021-02-26 21:52:09 +00:00
|
|
|
(use-package replace
|
|
|
|
:defer t
|
|
|
|
:straight (:type built-in)
|
|
|
|
:config
|
|
|
|
(evil-collection-occur-setup))
|
|
|
|
|
2021-02-20 23:23:42 +00:00
|
|
|
(provide 'init-built-ins)
|