Update :jump => :lookup

This commit is contained in:
Henrik Lissner 2018-01-05 23:55:04 -05:00
parent 9cc762ffbe
commit 42cee2e046
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395
11 changed files with 14 additions and 11 deletions

View file

@ -210,7 +210,7 @@ compilation database is present in the project.")
(if (/= (length bins) 2) (if (/= (length bins) 2)
(warn "cc-mode: couldn't find %s, disabling rtags support" bins) (warn "cc-mode: couldn't find %s, disabling rtags support" bins)
(add-hook! (c-mode c++-mode) #'rtags-start-process-unless-running) (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 :definition #'rtags-find-symbol-at-point
:references #'rtags-find-references-at-point))) :references #'rtags-find-references-at-point)))

View file

@ -18,7 +18,7 @@
:after elixir-mode :after elixir-mode
:hook (elixir-mode . alchemist-mode) :hook (elixir-mode . alchemist-mode)
:config :config
(set! :jump 'elixir-mode (set! :lookup 'elixir-mode
:definition #'alchemist-goto-definition-at-point :definition #'alchemist-goto-definition-at-point
:documentation #'alchemist-help-search-at-point) :documentation #'alchemist-help-search-at-point)
(set! :eval 'elixir-mode #'alchemist-eval-region)) (set! :eval 'elixir-mode #'alchemist-eval-region))

View file

@ -5,7 +5,10 @@
:config :config
(set! :repl 'emacs-lisp-mode #'+emacs-lisp/repl) (set! :repl 'emacs-lisp-mode #'+emacs-lisp/repl)
(set! :eval 'emacs-lisp-mode #'+emacs-lisp-eval) (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 (set! :rotate 'emacs-lisp-mode
:symbols '(("t" "nil") :symbols '(("t" "nil")
("let" "let*") ("let" "let*")

View file

@ -12,7 +12,7 @@
(add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t))) (add-hook! go-mode (add-hook 'before-save-hook #'gofmt-before-save nil t)))
(set! :repl 'go-mode #'gorepl-run) (set! :repl 'go-mode #'gorepl-run)
(set! :jump 'go-mode (set! :lookup 'go-mode
:definition #'go-guru-definition :definition #'go-guru-definition
:references #'go-guru-referrers :references #'go-guru-referrers
:documentation #'godoc-at-point) :documentation #'godoc-at-point)

View file

@ -11,7 +11,7 @@
(add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode)) (add-hook! 'intero-mode-hook #'(flycheck-mode eldoc-mode))
(set! :popup "^intero:backend:" :regex t :size 12) (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 (def-package! hindent

View file

@ -6,7 +6,7 @@
(def-package! eclim (def-package! eclim
:hook (java-mode . eclim-mode) :hook (java-mode . eclim-mode)
:config :config
(set! :jump 'java-mode (set! :lookup 'java-mode
:definition #'eclim-java-find-declaration :definition #'eclim-java-find-declaration
:references #'eclim-java-find-references :references #'eclim-java-find-references
:documentation #'eclim-java-show-documentation-for-current-element) :documentation #'eclim-java-show-documentation-for-current-element)

View file

@ -10,7 +10,7 @@
meghanada-use-eldoc t meghanada-use-eldoc t
meghanada-use-auto-start t) meghanada-use-auto-start t)
(set! :jump 'java-mode (set! :lookup 'java-mode
:definition #'meghanada-jump-declaration :definition #'meghanada-jump-declaration
:references #'meghanada-reference) :references #'meghanada-reference)

View file

@ -13,7 +13,7 @@
(set! :repl 'js2-mode #'+javascript/repl) (set! :repl 'js2-mode #'+javascript/repl)
(set! :electric 'js2-mode :chars '(?\} ?\) ?.)) (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 ;; Conform switch-case indentation to js2 normal indent
(defvaralias 'js-switch-indent-offset 'js2-basic-offset) (defvaralias 'js-switch-indent-offset 'js2-basic-offset)

View file

@ -88,7 +88,7 @@ environment variables."
:after anaconda-mode :after anaconda-mode
:config :config
(set! :company-backend 'python-mode '(company-anaconda)) (set! :company-backend 'python-mode '(company-anaconda))
(set! :jump 'python-mode (set! :lookup 'python-mode
:definition #'anaconda-mode-find-definitions :definition #'anaconda-mode-find-definitions
:references #'anaconda-mode-find-references :references #'anaconda-mode-find-references
:documentation #'anaconda-mode-show-doc) :documentation #'anaconda-mode-show-doc)

View file

@ -32,7 +32,7 @@
(unless (file-exists-p racer-cmd) (unless (file-exists-p racer-cmd)
(warn "rust-mode: racer binary can't be found; auto-completion is disabled")) (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 (def-package! company-racer

View file

@ -23,7 +23,7 @@
:after typescript-mode :after typescript-mode
:config :config
(set! :company-backend 'typescript-mode '(company-tide)) (set! :company-backend 'typescript-mode '(company-tide))
(set! :jump 'typescript-mode (set! :lookup 'typescript-mode
:definition #'tide-jump-to-definition :definition #'tide-jump-to-definition
:references #'tide-references :references #'tide-references
:documentation #'tide-documentation-at-point) :documentation #'tide-documentation-at-point)