From c34f04acd167877a501c747f24592857c4313284 Mon Sep 17 00:00:00 2001 From: yannickreiss Date: Tue, 30 Apr 2024 10:51:39 +0200 Subject: [PATCH] Autocomplete --- custom.el | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/custom.el b/custom.el index 96f4f49..46b2b14 100644 --- a/custom.el +++ b/custom.el @@ -4,7 +4,7 @@ ;; Your init file should contain only one such instance. ;; If there is more than one, they won't work right. '(package-selected-packages - '(laas aas yasnippet evil editorconfig markdown-mode auctex rust-mode nasm-mode lua-mode ada-mode diff-hl magit corfu consult vertico))) + '(auto-complete laas aas yasnippet evil editorconfig markdown-mode auctex rust-mode nasm-mode lua-mode ada-mode diff-hl magit corfu consult vertico))) (custom-set-faces ;; custom-set-faces was added by Custom. ;; If you edit it by hand, you could mess it up, so be careful. @@ -12,10 +12,12 @@ ;; If there is more than one, they won't work right. ) +(setq make-backup-files nil) + (unless (package-installed-p 'yasnippet) (package-install 'yasnippet)) (add-to-list 'load-path - "~/.config/emacs/yasnippet") + "~/.config/emacs/snippets") (yas-global-mode 1) (setq yas-triggers-in-filed t) @@ -149,3 +151,7 @@ :cond #'laas-object-on-left-condition "qq" (lambda () (interactive) (laas-wrap-previous-object "sqrt")))) + +(unless (package-installed-p 'auto-complete) + (package-install 'auto-complete)) +(ac-config-default)