Skip to content

About the rebinding of SPC to close the company popup in ora-company.el. #36

Description

@hongyi-zhao

Based on your wonderful blog here, I find your very distinctive company configuration, i.e., ora-company.el. But I've some questions about the configuration used in this file, as described below:

  1. In the above configuration, you use the following setting for remapping SPC to close the company popup:

(define-key map " " (lambda ()
(interactive)
(company-abort)
(self-insert-command 1)))

But based on my tries, the following configuration for company will achieve the same purpose:

  :bind
  ( :map company-active-map
    ("SPC" . company-complete-selection))

So, I want to know why you use this more complicated code snippet.

  1. Why do you unbind RET with the following code?

(define-key map (kbd "<return>") nil))

  1. Is it possible to implement a regexp based candidates selection algorithm/feature for the entries shown on the company popup?

Regards,
HY

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