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:
- 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.
- Why do you unbind RET with the following code?
|
(define-key map (kbd "<return>") nil)) |
- Is it possible to implement a regexp based candidates selection algorithm/feature for the entries shown on the company popup?
Regards,
HY
Based on your wonderful blog here, I find your very distinctive
companyconfiguration, i.e.,ora-company.el. But I've some questions about the configuration used in this file, as described below:SPCto close the company popup:oremacs/modes/ora-company.el
Lines 49 to 52 in d2b2cd8
But based on my tries, the following configuration for company will achieve the same purpose:
So, I want to know why you use this more complicated code snippet.
oremacs/modes/ora-company.el
Line 53 in d2b2cd8
Regards,
HY