Exploit new :defer input|buffer across various modules
This commit is contained in:
parent
2712d606c2
commit
a631c10d05
5 changed files with 21 additions and 24 deletions
|
@ -42,13 +42,16 @@ MODES should be one major-mode symbol or a list of them."
|
||||||
company-backends
|
company-backends
|
||||||
'(company-capf company-dabbrev company-ispell company-yasnippet)
|
'(company-capf company-dabbrev company-ispell company-yasnippet)
|
||||||
company-transformers '(company-sort-by-occurrence))
|
company-transformers '(company-sort-by-occurrence))
|
||||||
(when (featurep! +auto)
|
|
||||||
(require 'company)
|
|
||||||
(setq company-idle-delay 0.2))
|
|
||||||
:config
|
:config
|
||||||
(global-company-mode +1))
|
(global-company-mode +1))
|
||||||
|
|
||||||
|
|
||||||
|
(def-package! company
|
||||||
|
:when (featurep! +auto)
|
||||||
|
:defer input
|
||||||
|
:config (setq company-idle-delay 0.2))
|
||||||
|
|
||||||
|
|
||||||
(def-package! company-statistics
|
(def-package! company-statistics
|
||||||
:hook (company-mode . company-statistics-mode)
|
:hook (company-mode . company-statistics-mode)
|
||||||
:init (advice-add #'company-statistics-mode :around #'doom*shut-up)
|
:init (advice-add #'company-statistics-mode :around #'doom*shut-up)
|
||||||
|
|
|
@ -11,8 +11,9 @@
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(def-package! helm-mode
|
(def-package! helm-mode
|
||||||
:hook (doom-init . helm-mode)
|
:defer (input . 1)
|
||||||
:config
|
:config
|
||||||
|
(helm-mode +1)
|
||||||
;; helm is too heavy for find-file-at-point
|
;; helm is too heavy for find-file-at-point
|
||||||
(add-to-list 'helm-completing-read-handlers-alist '(find-file-at-point . nil)))
|
(add-to-list 'helm-completing-read-handlers-alist '(find-file-at-point . nil)))
|
||||||
|
|
||||||
|
|
|
@ -24,8 +24,7 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
;;
|
;;
|
||||||
|
|
||||||
(def-package! ivy
|
(def-package! ivy
|
||||||
:init
|
:defer input
|
||||||
(add-hook 'doom-init-hook #'ivy-mode)
|
|
||||||
:config
|
:config
|
||||||
(setq ivy-height 12
|
(setq ivy-height 12
|
||||||
ivy-do-completion-in-region nil
|
ivy-do-completion-in-region nil
|
||||||
|
@ -55,15 +54,7 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
[remap persp-switch-to-buffer] #'+ivy/switch-workspace-buffer
|
||||||
[remap imenu-anywhere] #'ivy-imenu-anywhere)
|
[remap imenu-anywhere] #'ivy-imenu-anywhere)
|
||||||
|
|
||||||
(nconc ivy-sort-functions-alist
|
(ivy-mode +1))
|
||||||
'((persp-kill-buffer . nil)
|
|
||||||
(persp-remove-buffer . nil)
|
|
||||||
(persp-add-buffer . nil)
|
|
||||||
(persp-switch . nil)
|
|
||||||
(persp-window-switch . nil)
|
|
||||||
(persp-frame-switch . nil)
|
|
||||||
(+workspace/switch-to . nil)
|
|
||||||
(+workspace/delete . nil))))
|
|
||||||
|
|
||||||
|
|
||||||
;; Show more buffer information in switch-buffer commands
|
;; Show more buffer information in switch-buffer commands
|
||||||
|
@ -140,7 +131,8 @@ immediately runs it on the current candidate (ending the ivy session)."
|
||||||
(def-package! ivy-hydra
|
(def-package! ivy-hydra
|
||||||
:commands (+ivy@coo/body ivy-dispatching-done-hydra)
|
:commands (+ivy@coo/body ivy-dispatching-done-hydra)
|
||||||
:init
|
:init
|
||||||
(map! :map ivy-minibuffer-map
|
(map! :after ivy
|
||||||
|
:map ivy-minibuffer-map
|
||||||
"C-o" #'+ivy@coo/body
|
"C-o" #'+ivy@coo/body
|
||||||
"M-o" #'ivy-dispatching-done-hydra)
|
"M-o" #'ivy-dispatching-done-hydra)
|
||||||
:config
|
:config
|
||||||
|
|
|
@ -23,10 +23,10 @@
|
||||||
|
|
||||||
(def-package! evil-collection
|
(def-package! evil-collection
|
||||||
:when (featurep! +everywhere)
|
:when (featurep! +everywhere)
|
||||||
:after evil
|
:defer input
|
||||||
:preface
|
:preface
|
||||||
;; must be set before evil/evil-collcetion is loaded
|
;; must be set before evil/evil-collcetion is loaded
|
||||||
(setq evil-want-integration (not (featurep! +everywhere))
|
(setq evil-want-integration nil
|
||||||
evil-collection-company-use-tng nil)
|
evil-collection-company-use-tng nil)
|
||||||
:config
|
:config
|
||||||
(delq 'kotlin-mode evil-collection-mode-list) ; doesn't do anything useful
|
(delq 'kotlin-mode evil-collection-mode-list) ; doesn't do anything useful
|
||||||
|
@ -229,17 +229,17 @@
|
||||||
|
|
||||||
|
|
||||||
(def-package! evil-escape
|
(def-package! evil-escape
|
||||||
:commands evil-escape-mode
|
:commands (evil-escape evil-escape-mode evil-escape-pre-command-hook)
|
||||||
:init
|
:init
|
||||||
(setq evil-escape-excluded-states '(normal visual multiedit emacs motion)
|
(setq evil-escape-excluded-states '(normal visual multiedit emacs motion)
|
||||||
evil-escape-excluded-major-modes '(neotree-mode)
|
evil-escape-excluded-major-modes '(neotree-mode)
|
||||||
evil-escape-key-sequence "jk"
|
evil-escape-key-sequence "jk"
|
||||||
evil-escape-delay 0.25)
|
evil-escape-delay 0.25)
|
||||||
(add-hook 'doom-post-init-hook #'evil-escape-mode)
|
(add-hook 'pre-command-hook 'evil-escape-pre-command-hook)
|
||||||
|
(map! :irvo "C-g" #'evil-escape)
|
||||||
:config
|
:config
|
||||||
;; no `evil-escape' in minibuffer
|
;; no `evil-escape' in minibuffer
|
||||||
(push #'minibufferp evil-escape-inhibit-functions)
|
(add-hook 'evil-escape-inhibit-functions #'minibufferp))
|
||||||
(map! :irvo "C-g" #'evil-escape))
|
|
||||||
|
|
||||||
|
|
||||||
(def-package! evil-exchange
|
(def-package! evil-exchange
|
||||||
|
@ -325,7 +325,7 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
(def-package! evil-snipe
|
(def-package! evil-snipe
|
||||||
:commands (evil-snipe-mode evil-snipe-override-mode
|
:commands (evil-snipe-mode evil-snipe-override-mode
|
||||||
evil-snipe-local-mode evil-snipe-override-local-mode)
|
evil-snipe-local-mode evil-snipe-override-local-mode)
|
||||||
:hook (doom-post-init . evil-snipe-mode)
|
:defer input
|
||||||
:init
|
:init
|
||||||
(setq evil-snipe-smart-case t
|
(setq evil-snipe-smart-case t
|
||||||
evil-snipe-scope 'line
|
evil-snipe-scope 'line
|
||||||
|
@ -333,6 +333,7 @@ the new algorithm is confusing, like in python or ruby."
|
||||||
evil-snipe-char-fold t
|
evil-snipe-char-fold t
|
||||||
evil-snipe-aliases '((?\; "[;:]")))
|
evil-snipe-aliases '((?\; "[;:]")))
|
||||||
:config
|
:config
|
||||||
|
(evil-snipe-mode +1)
|
||||||
(evil-snipe-override-mode +1))
|
(evil-snipe-override-mode +1))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
(def-package! evil-goggles
|
(def-package! evil-goggles
|
||||||
:when (featurep! :feature evil)
|
:when (featurep! :feature evil)
|
||||||
:hook (doom-post-init . evil-goggles-mode)
|
:defer input
|
||||||
:init
|
:init
|
||||||
(setq evil-goggles-duration 0.05
|
(setq evil-goggles-duration 0.05
|
||||||
evil-goggles-pulse nil ; too slow
|
evil-goggles-pulse nil ; too slow
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue