Autoload "evil-collection-*-setup" functions
With autoload, it doesn't need "require" the package before call evil-collection-*-setup function.
This commit is contained in:
parent
abc9dd60f7
commit
d9760942c6
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-ag-maps '(ag-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ag-setup ()
|
||||
"Set up `evil' bindings for `ag'."
|
||||
(evil-collection-define-key '(normal visual) 'ag-mode-map
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
alchemist-mode-map))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-alchemist-setup ()
|
||||
"Set up `evil' bindings for `alchemist'."
|
||||
(evil-set-initial-state 'alchemist-compile-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
(defconst evil-collection-anaconda-mode-maps '(anaconda-view-mode-map
|
||||
anaconda-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-anaconda-mode-setup ()
|
||||
"Set up `evil' bindings for `anaconda-mode'."
|
||||
;; Bindings don't seem to be set the first time.
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-arc-mode-maps '(archive-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-arc-mode-setup ()
|
||||
"Set up `evil' bindings for `arc-mode'."
|
||||
(evil-set-initial-state 'arc-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-bookmark-maps '(bookmark-bmenu-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-bookmark-setup ()
|
||||
"Set up `evil' bindings for `bookmark'."
|
||||
(evil-set-initial-state 'bookmark-bmenu-mode 'normal)
|
||||
|
|
|
@ -67,6 +67,7 @@ When called interactively prompt for MARK; RET remove all marks."
|
|||
|
||||
;; `evil-collection-buff-menu-Buffer-menu-unmark-all'
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-buff-menu-setup ()
|
||||
"Set up `evil' bindings for `buff-menu'.."
|
||||
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
(defconst evil-collection-calc-maps '(calc-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-calc-setup ()
|
||||
"Set up `evil' bindings for `calc'."
|
||||
(evil-collection-inhibit-insert-state 'calc-mode-map)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-calendar-maps '(calendar-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-calendar-setup ()
|
||||
"Set up `evil' bindings for `calendar'."
|
||||
(evil-set-initial-state 'calendar-mode 'normal)
|
||||
|
|
|
@ -79,6 +79,7 @@ ex. \(cider-debug-mode-send-reply \":next\"\)"
|
|||
"inspect"
|
||||
"locals")
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-cider-setup ()
|
||||
"Set up `evil' bindings for `cider'."
|
||||
(unless evil-move-beyond-eol
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
"Set `evil-shift-width' according to `cmake-tab-with'."
|
||||
(setq-local evil-shift-width cmake-tab-width))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-cmake-mode-setup ()
|
||||
"Set up `evil' bindings for `cmake-mode'."
|
||||
(add-hook 'cmake-mode-hook #'evil-collection-cmake-mode-set-evil-shift-width))
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-comint-maps '(comint-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-comint-setup ()
|
||||
"Set up `evil' bindings for `comint'."
|
||||
(when evil-want-C-d-scroll
|
||||
|
|
|
@ -52,6 +52,7 @@ be set through custom or before evil-collection loads."
|
|||
|
||||
(defconst evil-collection-company-maps '(company-active-map company-search-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-company-setup ()
|
||||
"Set up `evil' bindings for `company'."
|
||||
(evil-collection-define-key nil 'company-active-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-compile-maps '(compilation-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-compile-setup ()
|
||||
"Set up `evil' bindings for `compile'."
|
||||
(evil-set-initial-state 'compilation-mode 'normal)
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-cus-theme-maps '(custom-theme-choose-mode-map
|
||||
custom-new-theme-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-cus-theme-setup ()
|
||||
"Set up `evil' bindings for `cus-theme'."
|
||||
(evil-set-initial-state 'custom-new-theme-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-custom-maps '(custom-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-custom-setup ()
|
||||
"Set up `evil' bindings for `Custom-mode'."
|
||||
(evil-set-initial-state 'Custom-mode 'normal)
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-daemons-maps '(daemons-mode-map
|
||||
daemons-output-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-daemons-setup ()
|
||||
"Set up `evil' bindings for `daemons'."
|
||||
(evil-collection-define-key '(normal visual) 'daemons-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-deadgrep-maps '(deadgrep-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-deadgrep-setup ()
|
||||
"Set up `evil' bindings for deadgrep.."
|
||||
(evil-collection-define-key 'normal 'deadgrep-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-debbugs-maps '(debbugs-gnu-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-debbugs-setup ()
|
||||
"Set up `evil' bindings for `debbugs-gnu-mode'."
|
||||
(evil-set-initial-state 'debbugs-gnu-mode 'normal)
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
(defconst evil-collection-debug-maps '(debugger-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-debug-setup ()
|
||||
"Set up `evil' bindings for `debug'."
|
||||
(evil-set-initial-state 'debugger-mode 'normal)
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
(evil-motion-state)
|
||||
(evil-normal-state))))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-diff-toggle-setup ()
|
||||
"Toggle visiting diff buffers in motion state."
|
||||
(interactive)
|
||||
|
@ -81,6 +82,7 @@ current file instead."
|
|||
(widen)
|
||||
(diff-restrict-view arg)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-diff-mode-setup ()
|
||||
"Set up `evil' bindings for `diff-mode'."
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-dired-maps '(dired-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-dired-setup ()
|
||||
"Set up `evil' bindings for `dired'."
|
||||
(evil-collection-define-key 'normal 'dired-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-doc-view-maps '(doc-view-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-doc-view-setup ()
|
||||
"Set up `evil' bindings for `doc-view'."
|
||||
(evil-set-initial-state 'doc-view-mode 'normal)
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
edebug-x-instrumented-function-list-mode-map
|
||||
edebug-x-breakpoint-list-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-edebug-setup ()
|
||||
"Set up `evil' bindings for `edebug'."
|
||||
(evil-set-initial-state 'edebug-mode 'normal)
|
||||
|
|
|
@ -176,6 +176,7 @@
|
|||
(evil-normalize-keymaps)
|
||||
nil)
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ediff-setup ()
|
||||
"Initialize evil-ediff."
|
||||
(interactive)
|
||||
|
|
|
@ -31,6 +31,7 @@
|
|||
|
||||
(defconst evil-collection-eglot-maps '(eglot-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-eglot-setup ()
|
||||
"Set up `evil' bindings for `eglot'."
|
||||
(evil-collection-define-key 'normal 'eglot-mode-map
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
(defconst evil-collection-elfeed-maps '(elfeed-search-mode-map
|
||||
elfeed-show-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-elfeed-setup ()
|
||||
"Set up `evil' bindings for `elfeed'."
|
||||
|
||||
|
|
|
@ -67,6 +67,7 @@ alternative printed representations that can be displayed."
|
|||
(apply command args))
|
||||
(apply command args)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-elisp-mode-setup ()
|
||||
"Set up `evil' bindings for `elisp-mode'."
|
||||
(unless evil-move-beyond-eol
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
(defconst evil-collection-elisp-refs-maps '(elisp-refs-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-elisp-refs-setup ()
|
||||
"Set up `evil' bindings for `elisp-refs'."
|
||||
(evil-collection-define-key 'normal 'elisp-refs-mode-map
|
||||
|
|
|
@ -71,6 +71,7 @@ The return value is the yanked text."
|
|||
(unless (eobp) (evil-next-line))
|
||||
(evil-collection-emms-playlist-mode-paste-before))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-emms-browser-setup ()
|
||||
"Set up `evil' bindings for `emms-browser'."
|
||||
;; TODO: Why doesn't evil-set-initial-state work with emms-browser-mode?
|
||||
|
@ -140,6 +141,7 @@ The return value is the yanked text."
|
|||
"d" 'emms-browser-view-in-dired
|
||||
"gd" 'emms-browser-view-in-dired)) ; "d" does the same, keep "gd" for consistency.
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-emms-setup ()
|
||||
"Set up `evil' bindings for `emms'."
|
||||
(with-eval-after-load 'emms-browser
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
epa-key-mode-map
|
||||
epa-info-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-epa-setup ()
|
||||
(evil-collection-define-key 'normal 'epa-key-list-mode-map
|
||||
(kbd "<tab>") 'widget-forward
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-ert-maps '(ert-results-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ert-setup ()
|
||||
"Set up `evil' bindings for `ert'."
|
||||
(evil-collection-inhibit-insert-state 'ert-results-mode-map)
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
"^" 'eshell-bol))
|
||||
|
||||
;; TODO: Compare this setup procedure with evil-ediff.
|
||||
;;;###autoload
|
||||
(defun evil-collection-eshell-setup ()
|
||||
"Set up `evil' bindings for `eshell'."
|
||||
(add-hook 'eshell-mode-hook 'evil-collection-eshell-next-prompt-on-insert)
|
||||
|
|
|
@ -50,6 +50,7 @@
|
|||
(advice-remove 'bounds-of-thing-at-point
|
||||
'evil-collection-eval-sexp-fu-bounds-of-thing-at-point-sexp))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-eval-sexp-fu-setup ()
|
||||
"Set up `evil' with `eval-sexp-fu'."
|
||||
(unless evil-move-beyond-eol
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
(setq evil-mode-map-alist
|
||||
(delq evil-mc-map evil-mode-map-alist))))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-evil-mc-setup ()
|
||||
"Set up `evil' bindings for evil-mc."
|
||||
;; `evil-mc''s default keybindings conflict with `evil-collection' using the
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
eww-buffers-mode-map
|
||||
eww-bookmark-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-eww-setup ()
|
||||
"Set up `evil' bindings for `eww'."
|
||||
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-flycheck-maps '(flycheck-error-list-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-flycheck-setup ()
|
||||
"Set up `evil' bindings for `flycheck'."
|
||||
(evil-set-initial-state 'flycheck-error-list-mode 'normal)
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-flymake-maps '(flymake-mode-map
|
||||
flymake-diagnostics-buffer-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-flymake-setup ()
|
||||
"Set up `evil' bindings for `flymake'."
|
||||
(evil-collection-define-key
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
(setq-local header-line-format
|
||||
"Help: (c) change buffer (p) change prefix (q) quit"))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-free-keys-setup ()
|
||||
"Set up `evil' bindings for `free-keys'."
|
||||
(add-hook 'free-keys-mode-hook
|
||||
|
|
|
@ -47,6 +47,7 @@
|
|||
(apply command args))
|
||||
(apply command args)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-geiser-setup ()
|
||||
"Set up bindings for `geiser'."
|
||||
(unless evil-move-beyond-eol
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
ggtags-view-tag-history-mode-map
|
||||
ggtags-navigation-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ggtags-setup ()
|
||||
"Set up `evil' bindings for `ggtags'."
|
||||
(evil-set-initial-state 'ggtags-global-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
(defvar git-timemachine-mode-map)
|
||||
(defconst evil-collection-git-timemachine-map '(git-timemachine-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-git-timemachine-setup ()
|
||||
"Setup `evil' keybindings for `git-timemachine'."
|
||||
(evil-define-minor-mode-key 'normal 'git-timemachine-mode
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-go-mode-maps '(go-mode-map
|
||||
godoc-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-go-mode-setup ()
|
||||
"Set up `evil' bindings for `go-mode'."
|
||||
(evil-collection-define-key 'normal 'go-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-grep-maps '(grep-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-grep-setup ()
|
||||
"Set up `evil' bindings for `grep'."
|
||||
(evil-collection-define-key 'normal 'grep-mode-map
|
||||
|
|
|
@ -84,6 +84,7 @@
|
|||
"ZQ" 'evil-quit
|
||||
"ZZ" 'quit-window)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-guix-setup ()
|
||||
"Set up `evil' bindings for `guix'."
|
||||
(evil-collection-guix-set guix-ui-map) ; Covers output-list and generation-list.
|
||||
|
|
|
@ -103,6 +103,7 @@
|
|||
header-line-format)))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-helm-setup ()
|
||||
"Set up `evil' bindings for `helm'."
|
||||
(add-hook 'helm-minibuffer-set-up-hook 'evil-collection-helm-hide-minibuffer-maybe)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-help-maps '(help-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-help-setup ()
|
||||
"Set up `evil' bindings for `help'."
|
||||
(evil-set-initial-state 'help-mode 'normal)
|
||||
|
@ -56,9 +57,9 @@
|
|||
|
||||
;; The following bindings don't do what they are supposed to. "go" should open
|
||||
;; in the same window and "gO" should open in a different one.
|
||||
"go" 'push-button
|
||||
"go" 'push-button
|
||||
"gO" 'push-button
|
||||
|
||||
|
||||
"g?" 'describe-mode
|
||||
"gr" 'revert-buffer
|
||||
"<" 'help-go-back
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-ibuffer-maps '(ibuffer-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ibuffer-setup ()
|
||||
"Set up `evil' bindings for `ibuffer'."
|
||||
(evil-set-initial-state 'ibuffer-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-image+-maps '(image-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-image+-setup ()
|
||||
"Set up `evil' bindings for `image+'."
|
||||
(evil-collection-define-key 'normal 'image-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-image-dired-maps '(image-dired-thumbnail-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-image-dired-setup ()
|
||||
"Set up `evil' bindings for `image-dired-thumbnail-mode'."
|
||||
(evil-collection-define-key 'normal 'image-dired-thumbnail-mode-map
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
|
||||
(defconst evil-collection-image-maps '(image-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-image-setup ()
|
||||
"Set up `evil' bindings for `image-mode'."
|
||||
(evil-set-initial-state 'image-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-imenu-list-maps '(imenu-list-major-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-imenu-list-setup ()
|
||||
"Set up `evil' bindings for `imenu-list'."
|
||||
(evil-collection-define-key 'normal 'imenu-list-major-mode-map
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
indium-interaction-mode-map
|
||||
indium-repl-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-indium-setup ()
|
||||
"Set up `evil' bindings for `indium'."
|
||||
(when evil-collection-settings-setup-debugger-keys
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
|
||||
(defconst evil-collection-info-maps '(Info-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-info-setup ()
|
||||
"Set up `evil' bindings for `info-mode'."
|
||||
(evil-collection-inhibit-insert-state 'Info-mode-map)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
ivy-occur-grep-mode-map
|
||||
ivy-minibuffer-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ivy-setup ()
|
||||
"Set up `evil' bindings for `ivy-mode'."
|
||||
(evil-collection-define-key nil 'ivy-mode-map
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"Set `evil-shift-width' according to `js-indent-level'."
|
||||
(setq-local evil-shift-width js-indent-level))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-js2-mode-setup ()
|
||||
"Set up `evil' bindings for `js2-mode'."
|
||||
(add-hook 'js2-mode-hook #'evil-collection-js2-set-evil-shift-width)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-kotlin-maps '(kotlin-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-kotlin-mode-setup ()
|
||||
"Set up `evil' bindings for `kotlin-mode'."
|
||||
(evil-collection-define-key 'normal 'kotlin-mode-map
|
||||
|
|
|
@ -246,6 +246,7 @@ This is an exact copy of `lispy-set-key-theme' except with the additions of
|
|||
(assq 'lispy-mode minor-mode-map-alist)
|
||||
lispy-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-lispy-setup ()
|
||||
"Set up `evil' bindings for `lispy'."
|
||||
(advice-add 'lispy-set-key-theme :override 'evil-collection-lispy-set-key-theme)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-log-view-maps '(log-view-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-log-view-setup ()
|
||||
"Set up `evil' bindings for `log-view'."
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-lsp-ui-imenu-mode-maps '(lsp-ui-imenu-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-lsp-ui-imenu-setup ()
|
||||
"Set up `evil' bindings for `lsp-ui-imenu'."
|
||||
(evil-set-initial-state 'lsp-ui-imenu-mode 'normal)
|
||||
|
|
|
@ -37,6 +37,7 @@
|
|||
"Set `evil-shift-width' according to `lua-indent-level'."
|
||||
(setq evil-shift-width lua-indent-level))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-lua-mode-setup ()
|
||||
"Set up `evil' bindings for `lua-mode'."
|
||||
(add-hook 'lua-mode-hook #'evil-collection-lua-mode-set-evil-shift-width)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-macrostep-maps '(macrostep-keymap))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-macrostep-setup ()
|
||||
"Set up `evil' bindings for `macrostep'."
|
||||
;; Keymaps don't seem to be populated on first try.
|
||||
|
|
|
@ -39,6 +39,7 @@
|
|||
"gT" (and (bound-and-true-p magit-todos-mode) 'magit-todos-jump-to-todos)))
|
||||
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-magit-todos-setup ()
|
||||
"Set up `evil' bindings for `magit-todos'."
|
||||
;; magit-todos binds jT which prevents evil users from stepping into the section
|
||||
|
|
|
@ -38,6 +38,7 @@
|
|||
|
||||
(defconst evil-collection-magit-maps '(magit-blame-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-magit-setup ()
|
||||
"Set up `evil' bindings for `magit'."
|
||||
(evil-collection-define-key 'normal 'magit-blame-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-man-maps '(Man-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-man-setup ()
|
||||
"Set up `evil' bindings for `man'."
|
||||
(evil-set-initial-state 'Man-mode 'normal)
|
||||
|
|
|
@ -52,6 +52,7 @@ it does not have a mode."
|
|||
;; then it may conflict with other packages' if they do the same.
|
||||
(evil-insert 1))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-minibuffer-setup ()
|
||||
"Initialize minibuffer for `evil'."
|
||||
;; https://www.gnu.org/software/emacs/manual/html_node/elisp/Text-from-Minibuffer.html
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
(evil-normalize-keymaps)
|
||||
(add-hook 'post-command-hook 'evil-collection-mu4e-conversation--switch nil t))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-mu4e-conversation-setup ()
|
||||
"Set up `evil' bindings for `mu4e-conversation'."
|
||||
;; Evil does not update its current keymap state when it the point hits a
|
||||
|
|
|
@ -325,6 +325,7 @@ keybindings."
|
|||
|
||||
;;; Initialize evil-collection-mu4e
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-mu4e-setup ()
|
||||
"Initialize evil-mu4e if necessary.
|
||||
If mu4e-main-mode is in evil-state-motion-modes, initialization
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
(declare-function neotree-make-executor "neotree.el")
|
||||
(defconst evil-collection-neotree-maps '(neotree-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-neotree-setup ()
|
||||
"Set up `evil' bindings for `neotree'."
|
||||
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
(notmuch-tree-tag (list "+deleted")))
|
||||
(evil-next-line))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-notmuch-setup ()
|
||||
"Set up `evil' bindings for `notmuch'."
|
||||
(evil-set-initial-state 'notmuch-show-mode 'normal)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-nov-maps '(nov-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-nov-setup ()
|
||||
"Set up `evil' bindings for `nov'."
|
||||
(evil-collection-define-key 'normal 'nov-mode-map
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
(defconst evil-collection-occur-maps '(occur-mode-map
|
||||
occur-edit-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-occur-setup ()
|
||||
"Set up `evil' bindings for `occur'."
|
||||
(evil-set-initial-state 'occur-mode 'normal)
|
||||
|
|
|
@ -42,6 +42,7 @@ mode."
|
|||
|
||||
(defconst evil-collection-outline-maps '(outline-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-outline-setup ()
|
||||
"Set up `evil' bindings for `outline'."
|
||||
(evil-set-initial-state 'outline-mode 'normal)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-p4-maps '(p4-basic-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-p4-setup ()
|
||||
"Set up `evil' bindings for `p4'."
|
||||
(evil-set-initial-state 'p4-basic-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-package-menu-maps '(package-menu-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-package-menu-setup ()
|
||||
"Set up `evil' bindings for `package-menu'."
|
||||
(evil-set-initial-state 'package-menu-mode 'normal)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-pass-maps '(pass-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-pass-setup ()
|
||||
"Set up `evil' bindings for `pass-mode'."
|
||||
(evil-collection-define-key 'normal 'pass-mode-map
|
||||
|
|
|
@ -87,6 +87,7 @@
|
|||
(pdf-view-first-page)
|
||||
(image-bob)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-pdf-setup ()
|
||||
"Set up `evil' bindings for `pdf-view'."
|
||||
(evil-collection-inhibit-insert-state 'pdf-view-mode-map)
|
||||
|
@ -123,7 +124,7 @@
|
|||
"zi" 'pdf-view-enlarge
|
||||
"=" 'pdf-view-enlarge
|
||||
"-" 'pdf-view-shrink
|
||||
"zo" 'pdf-view-shrink
|
||||
"zo" 'pdf-view-shrink
|
||||
"0" 'pdf-view-scale-reset
|
||||
"z0" 'pdf-view-scale-reset
|
||||
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-popup-maps '(popup-menu-keymap))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-popup-setup ()
|
||||
"Set up `evil' bindings for `popup'."
|
||||
(defvar popup-menu-keymap)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-proced-maps '(proced-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-proced-setup ()
|
||||
"Set up `evil' bindings for `proced'."
|
||||
(evil-collection-inhibit-insert-state 'proced-mode-map)
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-prodigy-maps '(prodigy-mode-map
|
||||
prodigy-view-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-prodigy-setup ()
|
||||
"Set up `evil' bindings for `prodigy'."
|
||||
(evil-collection-define-key 'normal 'prodigy-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-profiler-maps '(profiler-report-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-profiler-setup ()
|
||||
"Set up `evil' bindings for `profiler'."
|
||||
(evil-set-initial-state 'profiler-report-mode 'normal)
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"Set `evil-shift-width' according to `python-indent-offset'."
|
||||
(setq evil-shift-width python-indent-offset))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-python-setup ()
|
||||
"Set up `evil' bindings for `python'."
|
||||
(add-hook 'python-mode-hook #'evil-collection-python-set-evil-shift-width)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-quickrun-maps '(quickrun--mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-quickrun-setup ()
|
||||
"Set up `evil' bindings for `quickrun'.."
|
||||
(evil-collection-define-key 'normal 'quickrun--mode-map
|
||||
|
|
|
@ -33,6 +33,7 @@
|
|||
(defconst evil-collection-racer-maps '(racer-mode-map
|
||||
racer-help-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-racer-setup ()
|
||||
"Set up `evil' bindings for `racer'."
|
||||
(evil-collection-define-key 'normal 'racer-mode-map
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-realgud-maps '(realgud:shortkey-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-realgud-setup ()
|
||||
"Set up `evil' bindings for `realgud'."
|
||||
;; This one is to represent `realgud-populate-src-buffer-map-plain'.
|
||||
|
|
|
@ -70,6 +70,7 @@
|
|||
o / O Create BibTeX file with all marked / unmarked entries.
|
||||
X / X Put all (marked) entries into one/many \\cite commands.")
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-reftex-setup ()
|
||||
"Set up `evil' bindings for `reftex'."
|
||||
|
||||
|
|
|
@ -46,6 +46,7 @@
|
|||
(evil-collection-restclient-result-mode)
|
||||
(evil-normalize-keymaps))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-restclient-setup ()
|
||||
"Set up `evil' bindings for `restclient'."
|
||||
;; Enable a separate minor mode so that we can bind keys to it.
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-rjsx-maps '(rjsx-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-rjsx-mode-setup ()
|
||||
"Set up `evil' bindings for `rjsx-mode'."
|
||||
(when evil-want-C-d-scroll
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-robe-maps '(robe-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-robe-setup ()
|
||||
"Set up `evil' bindings for `robe'."
|
||||
(evil-collection-define-key 'normal 'robe-mode-map
|
||||
|
|
|
@ -40,6 +40,7 @@
|
|||
rtags-references-tree-mode-map
|
||||
rtags-location-stack-visualize-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-rtags-setup ()
|
||||
"Set up `evil' bindings for `rtags'."
|
||||
(evil-set-initial-state 'rtags-mode 'normal)
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"Set `evil-shift-width' according to `ruby-indent-level'."
|
||||
(setq evil-shift-width ruby-indent-level))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-ruby-mode-setup ()
|
||||
"Set up `evil' bindings for `ruby'."
|
||||
(add-hook 'ruby-mode-hook #'evil-collection-ruby-mode-set-evil-shift-width))
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
|
||||
(defconst evil-collection-simple-maps '(special-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-simple-setup ()
|
||||
"Set up `evil' bindings for `simple'."
|
||||
(evil-collection-define-key '(normal visual) 'special-mode-map
|
||||
|
|
|
@ -53,6 +53,7 @@
|
|||
(apply command args))
|
||||
(apply command args)))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-slime-setup ()
|
||||
"Set up `evil' bindings for `slime'."
|
||||
(unless evil-move-beyond-eol
|
||||
|
|
|
@ -103,6 +103,7 @@ it is not appropriate in some cases like terminals."
|
|||
(interactive)
|
||||
(term-send-raw-string "\t"))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-term-setup ()
|
||||
"Set up `evil' bindings for `term'."
|
||||
(evil-set-initial-state 'term-mode 'insert)
|
||||
|
|
|
@ -34,6 +34,7 @@
|
|||
tide-references-mode-map
|
||||
tide-project-errors-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-tide-setup ()
|
||||
"Set up `evil' bindings for `tide'."
|
||||
(evil-collection-define-key 'normal 'tide-mode-map
|
||||
|
|
|
@ -41,6 +41,7 @@
|
|||
transmission-info-mode-map
|
||||
transmission-peers-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-transmission-setup ()
|
||||
"Set up `evil' bindings for `transmission'."
|
||||
|
||||
|
|
|
@ -36,6 +36,7 @@
|
|||
"Set `evil-shift-width' according to `typescript-indent-level'."
|
||||
(setq evil-shift-width typescript-indent-level))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-typescript-mode-setup ()
|
||||
"Set up `evil' bindings for `typescript-mode'."
|
||||
(add-hook 'typescript-mode-hook
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-vc-annotate-maps '(vc-annotate-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-vc-annotate-setup ()
|
||||
"Set up `evil' bindings for `vc-annotate'."
|
||||
(evil-set-initial-state 'vc-annotate-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-vc-dir-maps '(vc-dir-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-vc-dir-setup ()
|
||||
"Set up `evil' bindings for `vc-dir'."
|
||||
(evil-set-initial-state 'vc-dir-mode 'normal)
|
||||
|
|
|
@ -32,6 +32,7 @@
|
|||
|
||||
(defconst evil-collection-vc-git-maps '(vc-git-mode-map))
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-vc-git-setup ()
|
||||
"Set up `evil' bindings for `vc-git'."
|
||||
(evil-set-initial-state 'vc-git-log-view-mode 'normal))
|
||||
|
|
|
@ -30,6 +30,7 @@
|
|||
(require 'vdiff nil t)
|
||||
(require 'evil-collection)
|
||||
|
||||
;;;###autoload
|
||||
(defun evil-collection-vdiff-setup ()
|
||||
"Set up `evil' bindings for `vdiff-mode'."
|
||||
(dolist (mode '(vdiff-mode vdiff-3way-mode))
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue