Skip to content

counsel-at-point for generic completion at point #331

Description

I reconstituted these snippets from your dotfiles. Are these right?

(require 'python)
(define-key python-mode-map (kbd "C-M-i") 'counsel-jedi)
(require 'lisp-mode)
(define-key lisp-mode-map (kbd "C-M-i") 'counsel-cl)
(require 'clojure-mode)
(define-key clojure-mode-map (kbd "C-M-i") 'counsel-clj)
(define-key lisp-mode-shared-map "C-M-i" 'counsel-el)
;; or maybe
(define-key emacs-lisp-mode-map "C-M-i" 'counsel-el)

And maybe as well

(define-key org-mode-map (kbd "C-c C-q") 'counsel-org-tag)

Such snippets could either be added to the wiki or the readme snippet. But what would be really great would be a generic completion method, like ido-at-point, which would complete symbol at point with ivy using built-in completion system or the counsel-* completions functions if dependencies are available.

It may not require much changes to this package, since using it and re-defining this function worked for me:

(defun ido-at-point-read (comps common)
  (completing-read "" comps nil t common))

(ido-at-point-mode 1)

ivy-completing-read worked as well.

Thank you for your attention and awesome completion system!

[EDIT] Oh, and no hurry of course, this is a suggestion and not a request!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions