No pop up document is showing
sakh1979 opened this issue · 3 comments
Hi -
I know this is a newbie question, but I have spend couple of days trying to figure this out and haven't been successful.
As the title says: auto-complete is not displaying popup-tip documentation while in clojure-mode, repl, or cider-mode. Here is my emacs configuration for clojure:
;----------------;
;;; Clojure ;;;
;----------------;
(require 'ac-nrepl)
(add-hook 'clojure-mode-hook 'paredit-mode)
(add-hook 'clojure-mode-hook 'rainbow-delimiters-mode)
(add-hook 'cider-repl-mode-hook 'paredit-mode)
(add-hook 'cider-repl-mode-hook 'rainbow-delimiters-mode)
(add-hook 'cider-repl-mode-hook 'ac-nrepl-setup)
(add-hook 'cider-mode-hook 'cider-turn-on-eldoc-mode)
(add-hook 'cider-mode-hook 'ac-nrepl-setup)
(eval-after-load "auto-complete"
'(add-to-list 'ac-modes 'cider-repl-mode))
(defun set-auto-complete-as-completion-at-point-function ()
(setq completion-at-point-functions '(auto-complete)))
(add-hook 'auto-complete-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'cider-repl-mode-hook 'set-auto-complete-as-completion-at-point-function)
(add-hook 'cider-mode-hook 'set-auto-complete-as-completion-at-point-function)
(eval-after-load "cider"
'(define-key cider-mode-map (kbd "C-c C-d") 'ac-nrepl-popup-doc))
(provide 'clojure-settings)
However, auto-complete is working fine while in other modes, example: Emacs Lisp mode.
I have attached couple of screen shots:
I think, I have followed the directions correctly, and have spent some trying to figure it out. But, now its just getting to the point of being frustrating.
I hope you can help me with this issue.
Thanks,
Sagun
Hmmm... not immediately sure, but here's my Cider + auto-complete config, and elsewhere I enable global-auto-complete-mode
.
Note that I'm using ac-cider
, which has replaced ac-nrepl
: you should switch over too.
Hope this helps.
-Steve
Hi Steve -
Thanks for looking into my issue, and for showing me your config files. I tried altering my config file, but still I can't get the popup documentation to show up.
I would like to use ac-cider
but I can not find it in the el-get
repository. Would you know how to put it there?
Thanks,
Sagun
You can install it using package.el
via MELPA, I believe: (require 'el-get-elpa)
, and customize package-archives
accordingly. I haven't used el-get
myself for many years, so I'm afraid I can't provide more detailed instructions.