Update conventions for help/doc key bindings
`m d` goes under help commands so it is now `m h d`
This commit is contained in:
parent
103456f89f
commit
0051aa73c4
|
@ -55,7 +55,7 @@
|
|||
"mpf" 'preview-cache-preamble
|
||||
"mpc" 'preview-clearout
|
||||
|
||||
"m?" 'TeX-doc ;; TeX-doc is a very slow function
|
||||
"mhd" 'TeX-doc ;; TeX-doc is a very slow function
|
||||
)
|
||||
|
||||
(setq-default TeX-auto-save t)
|
||||
|
|
|
@ -79,14 +79,14 @@ must be defined in `dotspacemacs/init' function to take effect.")
|
|||
;; (setq edts-log-level 'debug)
|
||||
;; (setq edts-face-inhibit-mode-line-updates t)
|
||||
(evil-leader/set-key-for-mode 'erlang-mode
|
||||
"md" 'edts-find-doc
|
||||
"me" 'edts-code-next-issue
|
||||
"mG" 'edts-find-global-function
|
||||
"mg" 'edts-find-source-under-point
|
||||
"mh" 'edts-find-header-source
|
||||
"ml" 'edts-find-local-function
|
||||
"mm" 'edts-find-macro-source
|
||||
"mr" 'edts-find-record-source))))
|
||||
"me" 'edts-code-next-issue
|
||||
"mGg" 'edts-find-global-function
|
||||
"mGh" 'edts-find-header-source
|
||||
"mGl" 'edts-find-local-function
|
||||
"mGr" 'edts-find-record-source
|
||||
"mg" 'edts-find-source-under-point
|
||||
"mhd" 'edts-find-doc
|
||||
"mm" 'edts-find-macro-source))))
|
||||
|
||||
(defun erlang-elixir/init-flycheck ()
|
||||
(add-hook 'elixir-mode-hook 'flycheck-mode)
|
||||
|
|
|
@ -32,8 +32,8 @@ which require an initialization must be listed explicitly in the list.")
|
|||
"mp" 'ess-R-object-popup
|
||||
"mB" 'ess-eval-buffer-and-go
|
||||
"mb" 'ess-eval-buffer
|
||||
"mD" 'ess-eval-function-or-paragraph-and-step
|
||||
"md" 'ess-eval-region-or-line-and-step
|
||||
"mhD" 'ess-eval-function-or-paragraph-and-step
|
||||
"mhd" 'ess-eval-region-or-line-and-step
|
||||
"mL" 'ess-eval-line-and-go
|
||||
"ml" 'ess-eval-line
|
||||
"mR" 'ess-eval-region-and-go
|
||||
|
|
|
@ -16,7 +16,7 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:defer t
|
||||
:init
|
||||
(eval-after-load 'scss-mode
|
||||
'(evil-leader/set-key-for-mode 'scss-mode "mh" 'helm-css-scss))))
|
||||
'(evil-leader/set-key-for-mode 'scss-mode "mg" 'helm-css-scss))))
|
||||
|
||||
(defun html/init-web-mode ()
|
||||
(use-package web-mode
|
||||
|
|
|
@ -125,7 +125,7 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:config
|
||||
(progn
|
||||
(evil-leader/set-key-for-mode 'js2-mode "mc" 'tern-rename-variable)
|
||||
(evil-leader/set-key-for-mode 'js2-mode "md" 'tern-get-docs)
|
||||
(evil-leader/set-key-for-mode 'js2-mode "mhd" 'tern-get-docs)
|
||||
(evil-leader/set-key-for-mode 'js2-mode "mg" 'tern-find-definition)
|
||||
(evil-leader/set-key-for-mode 'js2-mode "mG" 'tern-find-definition-by-name)
|
||||
(evil-leader/set-key-for-mode 'js2-mode (kbd "m C-g") 'tern-pop-find-definition)
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
(add-to-list 'evil-emacs-state-modes 'pylookup-mode)
|
||||
(evil-add-hjkl-bindings pylookup-mode-map 'emacs)
|
||||
(evil-leader/set-key-for-mode 'python-mode
|
||||
"mD" 'pylookup-lookup)
|
||||
"mhD" 'pylookup-lookup)
|
||||
|
||||
(let ((dir (config-system/get-layer-property 'python :ext-dir)))
|
||||
(setq pylookup-dir (concat dir "/pylookup")
|
||||
|
|
|
@ -28,7 +28,7 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:config
|
||||
(progn
|
||||
(evil-leader/set-key-for-mode 'python-mode
|
||||
"md" 'anaconda-mode-view-doc
|
||||
"mhd" 'anaconda-mode-view-doc
|
||||
"mg" 'anaconda-mode-goto)
|
||||
(spacemacs|hide-lighter anaconda-mode))))
|
||||
|
||||
|
|
|
@ -33,7 +33,7 @@ which require an initialization must be listed explicitly in the list.")
|
|||
:defer t
|
||||
:init (add-hook 'enh-ruby-mode-hook 'robe-mode)
|
||||
:config (progn (evil-leader/set-key-for-mode 'enh-ruby-mode "mg" 'robe-jump)
|
||||
(evil-leader/set-key-for-mode 'enh-ruby-mode "md" 'robe-doc)
|
||||
(evil-leader/set-key-for-mode 'enh-ruby-mode "mhd" 'robe-doc)
|
||||
(evil-leader/set-key-for-mode 'enh-ruby-mode "mR" 'robe-rails-refresh)
|
||||
(evil-leader/set-key-for-mode 'enh-ruby-mode "mi" 'robe-start))))
|
||||
|
||||
|
|
|
@ -19,7 +19,7 @@
|
|||
(add-hook 'outline-mode-hook 'windows-scripts/dos-outline-hook))
|
||||
:config
|
||||
(evil-leader/set-key-for-mode 'dos-mode
|
||||
"mD" 'dos-help-cmd
|
||||
"mhD" 'dos-help-cmd
|
||||
"meb" 'dos-run
|
||||
"meB" 'dos-run-args
|
||||
"ms" 'dos-sep
|
||||
|
|
|
@ -63,7 +63,7 @@
|
|||
"ml" 'evil-lisp-state
|
||||
"mt" 'racket-test
|
||||
"mg" 'racket-visit-definition
|
||||
"md" 'racket-doc)
|
||||
"mhd" 'racket-doc)
|
||||
(add-hook 'racket-mode-hook
|
||||
'(lambda ()
|
||||
(define-key racket-mode-map (kbd "H-r") 'racket-run))))))
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
- [Depending on the language](#depending-on-the-language)
|
||||
- [Debugging](#debugging)
|
||||
- [Code navigation](#code-navigation)
|
||||
- [Documentation](#documentation)
|
||||
- [Getting Help or Documentation](#getting-help-or-documentation)
|
||||
- [Evilify buffers](#evilify-buffers)
|
||||
- [Navigation in `insert state` buffers](#navigation-in-insert-state-buffers)
|
||||
|
||||
|
@ -117,13 +117,14 @@ or more bindings for the same thing
|
|||
------------------|------------------------------------------------------------
|
||||
<kbd>m g</kbd> | go to definition of thing under point
|
||||
|
||||
### Documentation
|
||||
### Getting Help or Documentation
|
||||
|
||||
The base prefix for help commands is <kbd>SPC h</kbd>. Documentation is
|
||||
considered as an help command.
|
||||
|
||||
Key | Description
|
||||
------------------|------------------------------------------------------------
|
||||
<kbd>m d</kbd> | documentation of thing under point
|
||||
|
||||
**TBD**
|
||||
<kbd>m h d</kbd> | documentation of thing under point
|
||||
|
||||
### Evilify buffers
|
||||
|
||||
|
|
|
@ -170,8 +170,7 @@
|
|||
"xgl" 'set-google-translate-languages)
|
||||
;; Lisps ----------------------------------------------------------------------
|
||||
(evil-leader/set-key-for-mode 'emacs-lisp-mode
|
||||
"mD" 'elisp-slime-nav-describe-elisp-thing-at-point
|
||||
"mhd" 'elisp-slime-nav-describe-elisp-thing-at-point
|
||||
"mg" 'elisp-slime-nav-find-elisp-thing-at-point
|
||||
"mhv" 'describe-variable
|
||||
"mta" 'spacemacs/ert-run-tests-buffer
|
||||
"mtf" 'ert)
|
||||
|
|
|
@ -1145,10 +1145,10 @@ determine the state to enable when escaping from the insert state.")
|
|||
"Initialize helm-eshell."
|
||||
;; this is buggy for now
|
||||
;; (define-key eshell-mode-map (kbd "<tab>") 'helm-esh-pcomplete)
|
||||
(evil-leader/set-key-for-mode 'eshell-mode "mh" 'spacemacs/helm-eshell-history))
|
||||
(evil-leader/set-key-for-mode 'eshell-mode "mH" 'spacemacs/helm-eshell-history))
|
||||
(add-hook 'eshell-mode-hook 'spacemacs/init-helm-eshell)
|
||||
;;shell
|
||||
(evil-leader/set-key-for-mode 'shell-mode "mh" 'spacemacs/helm-shell-history)
|
||||
(evil-leader/set-key-for-mode 'shell-mode "mH" 'spacemacs/helm-shell-history)
|
||||
|
||||
(eval-after-load "helm-mode" ; required
|
||||
'(spacemacs|hide-lighter helm-mode)))))
|
||||
|
@ -1304,8 +1304,8 @@ determine the state to enable when escaping from the insert state.")
|
|||
(progn
|
||||
(setq ledger-post-amount-alignment-column 62)
|
||||
(evil-leader/set-key-for-mode 'ledger-mode
|
||||
"md" 'ledger-delete-current-transaction
|
||||
"ma" 'ledger-add-transaction))))
|
||||
"mhd" 'ledger-delete-current-transaction
|
||||
"ma" 'ledger-add-transaction))))
|
||||
|
||||
(defun spacemacs/init-leuven-theme ()
|
||||
(use-package leuven-theme
|
||||
|
|
Loading…
Reference in New Issue