diff options
-rw-r--r-- | home/dots/.emacs | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/home/dots/.emacs b/home/dots/.emacs index e2039b2..f3d4167 100644 --- a/home/dots/.emacs +++ b/home/dots/.emacs @@ -391,7 +391,9 @@ (setq x-select-enable-clipboard t x-select-enable-primary t)) -(use-package pdf-tools) +(use-package pdf-tools + :defer t + :ensure t) (use-package imenu :defer t @@ -400,12 +402,6 @@ :custom (imenu-auto-rescan t)) -(defun sudo-shell-command (command) - (interactive "MShell command (root): ") - (with-temp-buffer - (cd "/sudo::/") - (async-shell-command command))) - (use-package nov :defer t :ensure t @@ -481,6 +477,7 @@ ("p" . comint-previous-input)))) (use-package eww + :defer t :custom (eww-auto-rename-buffer t) (eww-buffer-name-length 20) @@ -504,10 +501,12 @@ (lambda (&rest _) (force-mode-line-update t)))) (use-package git-gutter + :defer t :diminish git-gutter-mode :hook (go-mode . git-gutter-mode) (prog-mode . git-gutter-mode) + (nix-mode . git-gutter-mode) :bind (("C-c g p" . git-gutter:previous-hunk) ("C-c g n" . git-gutter:next-hunk) @@ -523,9 +522,11 @@ :ensure t) (use-package git-gutter-fringe + :defer t :ensure t) (use-package grep + :defer t :custom (grep-template (string-join '("ugrep" @@ -576,6 +577,7 @@ ("r" . isearch-repeat-backward)))) (use-package avy + :defer t :ensure t :custom (avy-timeout-seconds 0.2) @@ -733,13 +735,14 @@ (use-package eldoc-box :ensure t - :demand t + :defer t :hook (eglot-managed-mode . #'eldoc-box-hover-mode) :bind ("C-h ." . eldoc-box-help-at-point)) (use-package markdown-mode + :defer t :ensure t :custom (markdown-list-item-bullets '("-")) @@ -797,6 +800,7 @@ #'ctrl-lock-off)) (use-package ido + :defer t :init (ido-mode t) :bind @@ -1251,6 +1255,12 @@ :diminish org-indent-mode) (use-package simple + :init + (defun sudo-shell-command (command) + (interactive "MShell command (root): ") + (with-temp-buffer + (cd "/sudo::/") + (async-shell-command command))) :diminish visual-line-mode) (use-package message |