Giter Club home page Giter Club logo

Comments (7)

seagle0128 avatar seagle0128 commented on May 17, 2024 1

Welcome! Good to know it works 😄

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 17, 2024

Hello, which mode do have this problem?
Please also check C-h k M-. RET

from .emacs.d.

GeneKao avatar GeneKao commented on May 17, 2024

In the python and anaconda mode, pressing M-. gives me no response. This happened after updating to the latest release from v3.5.

Here is my C-h k M-. RET result

M-. runs the command anaconda-mode-find-definitions (found in
anaconda-mode-map), which is an interactive compiled Lisp function in
‘anaconda-mode.el’.

It is bound to M-..

(anaconda-mode-find-definitions)

Find definitions for thing at point.

Thanks a lot for helping.

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 17, 2024

Are you using anaconda for python-mode? Please check if anaconda server is running correctly.
lsp is enabled by default in Centaur Emacs. I suggest to switch to python-language-server.

from .emacs.d.

GeneKao avatar GeneKao commented on May 17, 2024

I am using anaconda python, and I installed python-language-server through conda install, and it seems working fine.

I try to bind C-. with lsp-ui-peek-find-definitions and it works, but M-. doesn't work.

Here is my C-h k C-. RET result

C-. runs the command lsp-ui-peek-find-definitions (found in global-map), which
is an interactive autoloaded compiled Lisp function in ‘lsp-ui-peek.el’.

It is bound to C-., M-., <menu-bar> <edit> <goto> <xref-find-def>.

(lsp-ui-peek-find-definitions)

Find definitions to the IDENTIFIER at point.

I temperarily edited the init-edit.el like this:

;; Framework for mode-specific buffer indexes
;; (use-package imenu
;;   :ensure nil
;;   :bind (("C-." . imenu)))

(use-package lsp-ui
  :bind (("C-." . lsp-ui-peek-find-definitions)))

from .emacs.d.

seagle0128 avatar seagle0128 commented on May 17, 2024

In Centaur Emacs, M-. is bonded to lsp-ui-peek-find-definitions if lsp-mode is enabled. You should disable anacoda-mode in your env.
BTW, if you don't like lsp, please use (setq centaur-lsp nil).

from .emacs.d.

GeneKao avatar GeneKao commented on May 17, 2024

Ah, thanks! My bad, I didn't close anaconda in the buffer after updating so they might be conflicting with each other.
I killed it and restarted emacs, now everything works perfectly.

Thanks a lot!

from .emacs.d.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.