diff options
author | Case Duckworth | 2021-04-10 17:32:11 -0500 |
---|---|---|
committer | Case Duckworth | 2021-04-10 17:32:11 -0500 |
commit | 8f24fa708731e844804c96cf6f5f9731909ce7ab (patch) | |
tree | ac78ab56be807172ad53e217cc11aebaace13c42 | |
parent | Refactor to define all lispish modes in one place (diff) | |
download | emacs-8f24fa708731e844804c96cf6f5f9731909ce7ab.tar.gz emacs-8f24fa708731e844804c96cf6f5f9731909ce7ab.zip |
Add `company'
- Hook into `prog-mode' - Change some bindings - Add `slime-company'
-rw-r--r-- | init.el | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/init.el b/init.el index 767c8b3..ebbc6dd 100644 --- a/init.el +++ b/init.el | |||
@@ -716,6 +716,14 @@ if ripgrep is installed, otherwise `consult-grep'." | |||
716 | (apheleia--get-formatter-command)) | 716 | (apheleia--get-formatter-command)) |
717 | (indent-region (point-min) (point-max))))) | 717 | (indent-region (point-min) (point-max))))) |
718 | 718 | ||
719 | (setup (:straight company) | ||
720 | (:hook-into prog-mode) | ||
721 | (:with-map company-active-map | ||
722 | (:bind "C-n" company-select-next | ||
723 | "C-p" company-select-previous | ||
724 | "C-d" company-show-doc-buffer | ||
725 | "M-." company-show-location))) | ||
726 | |||
719 | ;;; Lisps | 727 | ;;; Lisps |
720 | (defvar lispy-modes '(emacs-lisp-mode | 728 | (defvar lispy-modes '(emacs-lisp-mode |
721 | eval-expression-minibuffer | 729 | eval-expression-minibuffer |
@@ -792,7 +800,13 @@ don't want." | |||
792 | "~/quicklisp/slime-helper.el") | 800 | "~/quicklisp/slime-helper.el") |
793 | (expand-file-name-exists-p | 801 | (expand-file-name-exists-p |
794 | "~/var/quicklisp/slime-helper.el")))) | 802 | "~/var/quicklisp/slime-helper.el")))) |
795 | (load slime-helper)))) | 803 | (load slime-helper)) |
804 | |||
805 | (with-eval-after-load 'company | ||
806 | (setup (:straight slime-company) | ||
807 | (:option slime-company-completion 'fuzzy | ||
808 | slime-company-after-completion 'slime-company-just-one-space) | ||
809 | (slime-setup '(slime-fancy slime-company)))))) | ||
796 | 810 | ||
797 | (when (executable-find "fennel") | 811 | (when (executable-find "fennel") |
798 | (setup (:straight fennel-mode) | 812 | (setup (:straight fennel-mode) |