Open avatar-lavventura opened 3 years ago
Does company-show-doc-buffer
work? It's normally bound to C-h
while the completion is active.
If it does not, the current backend does not support to documentation display. You can find out the currently used backend with M-x company-diag
.
M-x company-show-doc-buffer
returns:
abs(n: SupportsAbs[_T], /) -> _T
Return the absolute value of the argument.
C-h is bind to delete a character on my end; while completion is active, C-h
deletes a character.
Output of M-x company-diag
; my current backend: https://gist.github.com/avatar-lavventura/c37df6f9f35e377c89d880f9be9ec664
OK.
Please clarify: does it work with other backends? In .el
files, for instance.
I am not sure it does not do work do anything, maybe I was not able to make proper init.el file.
Is there any .emacs
configurations that I can try, which works on your end?
Here's the problem: you're resetting the value of company-frontends
after enabling company-quickhelp-mode
. Thereby undoing the effect of that function.
Do it in the reverse: move (company-quickhelp-mode)
to the last line.
ah I tried it but I does not work :-(
updated .emacs:
(require 'package)
(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/")
("melpa" . "https://melpa.org/packages/")
("org" . "https://orgmode.org/elpa/")))
(add-to-list 'package-archives
'("MELPA Stable" . "http://stable.melpa.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
(if (not (package-installed-p 'company-quickhelp))
(progn
(package-install 'company-quickhelp)))
(add-hook 'after-init-hook 'global-company-mode)
(setq company-auto-complete t)
(setq company-auto-complete t)
(global-set-key (kbd "C-c C-k") 'company-complete)
(company-quickhelp-mode) ;; moved to the end of the file
(eval-after-load 'company
'(define-key company-active-map (kbd "C-c h") #'company-quickhelp-manual-begin))
ah I tried it but I does not work :-(
Does it work in emacs-lisp-mode
? Or in *scratch*
?
Like I only used text code on my previoes comment in .emacs
file and deleted all the other stuff but there was no affect.
Could you rephrase that? I'm not sure I understand you well.
Sorry I am just unable to make it work.
It doesn't work in *scratch*
either?
Are you using a graphical Emacs? Not in terminal?
I was not able to make it work, what may be the reason?
C-c h
is not triggered as well.my config file: