Load autocomplete after general
This commit is contained in:
parent
aa2d7310d6
commit
3b02d38742
@ -67,18 +67,6 @@ Set up package.el to load from ELPA and MELPA
|
||||
(exec-path-from-shell-initialize))
|
||||
#+END_SRC
|
||||
|
||||
* Autocompletion
|
||||
There seems to be [[https://github.com/company-mode/company-mode/issues/68][some contention]] about whether autocomplete or company are better autocomplete packages. I'm going with company for now because the maintainer seems nicer...
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company
|
||||
:config
|
||||
(setq company-idle-delay 0.3)
|
||||
(add-hook 'after-init-hook #'global-company-mode))
|
||||
|
||||
(general-def "C-M-i" #'company-complete)
|
||||
(general-def "M-<tab>" #'company-complete)
|
||||
#+END_SRC
|
||||
|
||||
* General
|
||||
Better keybinding.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
@ -99,6 +87,18 @@ Delete trailing whitespace on save:
|
||||
(add-hook 'before-save-hook #'delete-trailing-whitespace)
|
||||
#+END_SRC
|
||||
|
||||
* Autocompletion
|
||||
There seems to be [[https://github.com/company-mode/company-mode/issues/68][some contention]] about whether autocomplete or company are better autocomplete packages. I'm going with company for now because the maintainer seems nicer...
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
(use-package company
|
||||
:config
|
||||
(setq company-idle-delay 0.3)
|
||||
(add-hook 'after-init-hook #'global-company-mode))
|
||||
|
||||
(general-def "C-M-i" #'company-complete)
|
||||
(general-def "M-<tab>" #'company-complete)
|
||||
#+END_SRC
|
||||
|
||||
* Which-key
|
||||
`which-key` makes keybindings discoverable.
|
||||
#+BEGIN_SRC emacs-lisp
|
||||
|
Loading…
Reference in New Issue
Block a user