Working corfu setup without company

This commit is contained in:
Maciej 2025-01-07 14:25:33 +02:00
parent b9559eabe0
commit a0500746f4
Signed by: maciej
GPG key ID: 41D62D42D3B0D765
11 changed files with 255 additions and 314 deletions

View file

@ -19,10 +19,7 @@
(if (boundp 'c-default-style)
(setq-local c-default-style "bsd")
(defvar c-default-style "bsd"))
(add-to-list (make-local-variable 'company-backends)
'(company-etags company-yasnippet)))
(defvar c-default-style "bsd")))
(add-hook 'c-mode-hook 'icejam-lang-activate-clang-mode)

View file

@ -9,7 +9,7 @@
;;; Code:
(require 'icejam-prog-mode)
(require 'icejam-company-yasnippet)
(require 'icejam-complete-at-point)
(use-package slime :ensure t)
(use-package slime-company :ensure t

View file

@ -2,16 +2,20 @@
;;; Commentary:
;;; Code:
(require 'icejam-blocking)
(require 'icejam-prog-mode)
(require 'icejam-transient)
;; Dash is a package that creates terse and more natural to me functions to
;; do basic things in Elisp.
(use-package dash :ensure t :defer t)
(use-package lispy :ensure t :defer t)
(use-package aggressive-indent :ensure t :defer t)
;; ;; Dash is a package that creates terse and more natural to me functions to
;; ;; do basic things in Elisp.
(declare-function elpaca-installed-p "elpaca")
(unless (elpaca-installed-p 'dash)
(use-package dash :ensure t :defer t))
;; ;; Adds pseudomodal editing for lisp.
(unless (elpaca-installed-p 'lispy)
(use-package lispy :ensure t :defer t))
(declare-function aggressive-indent-mode "aggressive-indent")
(declare-function column-enforce-n "column-enforce-mode" (number))
(add-to-list 'auto-mode-alist '("/Eask\\'" . emacs-lisp-mode))
@ -35,13 +39,14 @@
(icejam-set-indent 2) ;; Default indentation of 2 characters
(column-enforce-n 80)
(dash-fontify-mode t) ;; Fontify dash variables
(lispy-mode t) ;; Pseudomodal editing for lisp code
(aggressive-indent-mode) ;; Indent lisp automatically
(dash-fontify-mode t)
(lispy-mode t)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-yasnippet company-capf)))
(setq-local completion-at-point-functions '(yasnippet-capf
elisp-completion-at-point
cape-dabbrev
cape-file
cape-elisp-symbol)))
(add-hook 'emacs-lisp-mode-hook 'icejam-activate-emacs-lisp-mode)

View file

@ -22,11 +22,7 @@
(column-enforce-n 99)
;; Run LSP
(lsp-deferred)
;; Company list override
(add-to-list (make-local-variable 'company-backends)
'(company-capf company-yasnippet)))
(lsp-deferred))
(add-hook 'rust-mode-hook 'icejam-activate-rust-mode)
(add-hook 'rust-mode-hook 'flycheck-rust-setup)