Fix active keymap issue in esh-autosuggest
‘esh-autosuggest’ sets the value for ‘company-active-map’, but because I use ‘company-posframe’ I need it to set ‘company-posframe-active-map’.
This commit is contained in:
parent
d13751c94a
commit
3f13ef3ed2
1 changed files with 7 additions and 1 deletions
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
;; Author: Tom Willemse <tom@ryuslash.org>
|
;; Author: Tom Willemse <tom@ryuslash.org>
|
||||||
;; Keywords: local
|
;; Keywords: local
|
||||||
;; Version: 2019.0920.093304
|
;; Version: 2020.0615.100933
|
||||||
;; Package-Requires: (eshell-fringe-status esh-autosuggest xterm-color)
|
;; Package-Requires: (eshell-fringe-status esh-autosuggest xterm-color)
|
||||||
|
|
||||||
;; This program is free software; you can redistribute it and/or modify
|
;; This program is free software; you can redistribute it and/or modify
|
||||||
|
@ -63,6 +63,10 @@
|
||||||
"Set ‘xterm-color-preserve-properties’ to t."
|
"Set ‘xterm-color-preserve-properties’ to t."
|
||||||
(setq xterm-color-preserve-properties t))
|
(setq xterm-color-preserve-properties t))
|
||||||
|
|
||||||
|
(defun oni-eshell-fix-esh-autosuggest-active-keymap ()
|
||||||
|
"Set ‘company-posframe-active-map’ to ‘esh-autosuggest-active-map’."
|
||||||
|
(setq-local company-posframe-active-map esh-autosuggest-active-map))
|
||||||
|
|
||||||
(add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d)
|
(add-hook 'eshell-first-time-mode-hook #'oni-eshell--set-eshell-C-d)
|
||||||
(add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers)
|
(add-hook 'eshell-load-hook #'oni-eshell--enable-truncating-buffers)
|
||||||
(add-hook 'eshell-load-hook #'oni-eshell--enable-xterm-filter)
|
(add-hook 'eshell-load-hook #'oni-eshell--enable-xterm-filter)
|
||||||
|
@ -71,6 +75,8 @@
|
||||||
(add-hook 'eshell-mode-hook 'goto-address-mode)
|
(add-hook 'eshell-mode-hook 'goto-address-mode)
|
||||||
(add-hook 'eshell-before-prompt-hook #'oni-eshell--set-xterm-variables)
|
(add-hook 'eshell-before-prompt-hook #'oni-eshell--set-xterm-variables)
|
||||||
|
|
||||||
|
(add-hook 'esh-autosuggest-mode-hook #'oni-eshell-fix-esh-autosuggest-active-keymap)
|
||||||
|
|
||||||
(when (display-graphic-p)
|
(when (display-graphic-p)
|
||||||
(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))
|
(add-hook 'eshell-mode-hook 'eshell-fringe-status-mode))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue