Update :jump => :lookup
This commit is contained in:
parent
9cc762ffbe
commit
42cee2e046
11 changed files with 14 additions and 11 deletions
|
@ -210,7 +210,7 @@ compilation database is present in the project.")
|
|||
(if (/= (length bins) 2)
|
||||
(warn "cc-mode: couldn't find %s, disabling rtags support" bins)
|
||||
(add-hook! (c-mode c++-mode) #'rtags-start-process-unless-running)
|
||||
(set! :jump '(c-mode c++-mode)
|
||||
(set! :lookup '(c-mode c++-mode)
|
||||
:definition #'rtags-find-symbol-at-point
|
||||
:references #'rtags-find-references-at-point)))
|
||||
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
:after elixir-mode
|
||||
:hook (elixir-mode . alchemist-mode)
|
||||
:config
|
||||
(set! :jump 'elixir-mode
|
||||
(set! :lookup 'elixir-mode
|
||||
:definition #'alchemist-goto-definition-at-point
|
||||
:documentation #'alchemist-help-search-at-point)
|
||||
(set! :eval 'elixir-mode #'alchemist-eval-region))
|
||||
|
|
|
@ -5,7 +5,10 @@
|
|||
:config
|
||||
(set! :repl 'emacs-lisp-mode #'+emacs-lisp/repl)
|
||||
(set! :eval 'emacs-lisp-mode #'+emacs-lisp-eval)
|
||||
(set! :jump 'emacs-lisp-mode :documentation #'describe-symbol)
|
||||
|
||||
;; An xref backend is set up automatically for emacs-lisp-mode
|
||||
(set! :lookup 'emacs-lisp-mode :documentation #'describe-symbol)
|
||||
|
||||
(set! :rotate 'emacs-lisp-mode
|
||||
:symbols '(("t" "nil")
|
||||
("let" "let*")
|
||||
|
|
|
@ -12,7 +12,7 @@
|
|||
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t)))
|
||||
|
||||
(set! :repl 'go-mode #'gorepl-run)
|
||||
(set! :jump 'go-mode
|
||||
(set! :lookup 'go-mode
|
||||
:definition #'go-guru-definition
|
||||
:references #'go-guru-referrers
|
||||
:documentation #'godoc-at-point)
|
||||
|
|
|
@ -11,7 +11,7 @@
|
|||
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
|
||||
|
||||
(set! :popup "^intero:backend:" :regex t :size 12)
|
||||
(set! :jump 'haskell-mode :definition #'intero-goto-definition))
|
||||
(set! :lookup 'haskell-mode :definition #'intero-goto-definition))
|
||||
|
||||
|
||||
(def-package! hindent
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
(def-package! eclim
|
||||
:hook (java-mode . eclim-mode)
|
||||
:config
|
||||
(set! :jump 'java-mode
|
||||
(set! :lookup 'java-mode
|
||||
:definition #'eclim-java-find-declaration
|
||||
:references #'eclim-java-find-references
|
||||
:documentation #'eclim-java-show-documentation-for-current-element)
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
meghanada-use-eldoc t
|
||||
meghanada-use-auto-start t)
|
||||
|
||||
(set! :jump 'java-mode
|
||||
(set! :lookup 'java-mode
|
||||
:definition #'meghanada-jump-declaration
|
||||
:references #'meghanada-reference)
|
||||
|
||||
|
|
|
@ -13,7 +13,7 @@
|
|||
|
||||
(set! :repl 'js2-mode #'+javascript/repl)
|
||||
(set! :electric 'js2-mode :chars '(?\} ?\) ?.))
|
||||
(set! :jump 'js2-mode :xref-backend #'xref-js2-xref-backend)
|
||||
(set! :lookup 'js2-mode :xref-backend #'xref-js2-xref-backend)
|
||||
|
||||
;; Conform switch-case indentation to js2 normal indent
|
||||
(defvaralias 'js-switch-indent-offset 'js2-basic-offset)
|
||||
|
|
|
@ -88,7 +88,7 @@ environment variables."
|
|||
:after anaconda-mode
|
||||
:config
|
||||
(set! :company-backend 'python-mode '(company-anaconda))
|
||||
(set! :jump 'python-mode
|
||||
(set! :lookup 'python-mode
|
||||
:definition #'anaconda-mode-find-definitions
|
||||
:references #'anaconda-mode-find-references
|
||||
:documentation #'anaconda-mode-show-doc)
|
||||
|
|
|
@ -32,7 +32,7 @@
|
|||
(unless (file-exists-p racer-cmd)
|
||||
(warn "rust-mode: racer binary can't be found; auto-completion is disabled"))
|
||||
|
||||
(set! :jump 'rust-mode :definition #'racer-find-definition))
|
||||
(set! :lookup 'rust-mode :definition #'racer-find-definition))
|
||||
|
||||
|
||||
(def-package! company-racer
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
:after typescript-mode
|
||||
:config
|
||||
(set! :company-backend 'typescript-mode '(company-tide))
|
||||
(set! :jump 'typescript-mode
|
||||
(set! :lookup 'typescript-mode
|
||||
:definition #'tide-jump-to-definition
|
||||
:references #'tide-references
|
||||
:documentation #'tide-documentation-at-point)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue