~:bind -> :general for bindings

This commit is contained in:
2020-09-01 23:24:44 +01:00
parent dccc156867
commit d76098587d

View File

@@ -640,15 +640,21 @@ freely.
#+end_src #+end_src
** Company ** Company
Company is the auto complete system I use. I don't like having heavy Company is the auto complete system I use. I don't like having heavy
setups for company, as it only makes it worse to use. In this case, setups for company as it only makes it slower to use. In this case,
just setup some evil binds for company just setup some evil binds for company.
#+begin_src emacs-lisp #+begin_src emacs-lisp
(use-package company (use-package company
:hook (prog-mode-hook . company-mode) :hook
:bind (("C-SPC" . company-complete) (prog-mode-hook . company-mode)
:map company-active-map (eshell-mode-hook . company-mode)
("M-j" . company-select-next) :general
("M-k" . company-select-previous))) (general-def
:states '(normal insert)
(kbd "C-SPC") #'company-complete)
(general-def
:states '(normal insert)
"M-j" #'company-select-next
"M-k" #'company-select-previous))
#+end_src #+end_src
** Pretty symbols ** Pretty symbols
Prettify symbols mode allows for users to declare 'symbols' that Prettify symbols mode allows for users to declare 'symbols' that