switched from company to corfu with basic config

This commit is contained in:
EliasVincent 2025-01-04 00:03:04 +01:00
parent 1c9ac95772
commit adf6c73340
2 changed files with 21 additions and 9 deletions

View File

@ -108,9 +108,9 @@
(after! org
(define-abbrev org-mode-abbrev-table "osb"
'(lambda () (insert "#+BEGIN_SRC ")
(backward-char 13)
(insert "\n\n#+END_SRC")
(forward-char 13)))
(backward-char 13)
(insert "\n\n#+END_SRC")
(forward-char 13)))
(abbrev-mode 1)) ;; enable abbrev mode
;; reload files on save
(global-auto-revert-mode 1)
@ -119,9 +119,21 @@
(after! org-journal
(setq org-journal-dir "~/Nextcloud/org/journal")
(setq org-journal-file-format "%Y_%m_%d.org")
)
(setq org-journal-file-header "")
)
(after! org-download
(setq-default org-download-image-dir "~/Nextcloud/org/img")
(add-hook 'dired-mode-hook 'org-download-enable)
)
)
;; autocomplete corfu
(after! lsp-mode
(setq lsp-completion-provider :none)) ;; Disable LSP's completion provider
(use-package! corfu
:custom
(corfu-auto t) ;; Enable auto completion
(corfu-auto-prefix 2) ;; Complete after 2 characters
(corfu-auto-delay 0.0) ;; No delay for completion
;; (corfu-echo-documentation nil)) ;; Disable documentation in echo area

View File

@ -23,8 +23,8 @@
;;layout ; auie,ctsrnm is the superior home row
:completion
company ; the ultimate code completion backend
;; (corfu +orderless) ; complete with cap(f), cape and a flying feather!
;; company ; the ultimate code completion backend
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
;;helm ; the *other* search engine for love and life
;;ido ; the other *other* search engine...
;;ivy ; a search engine for love and life
@ -35,7 +35,7 @@
doom ; what makes DOOM look the way it does
doom-dashboard ; a nifty splash screen for Emacs
doom-quit ; DOOM quit-message prompts when you quit Emacs
;; (emoji +unicode) ; 🙂
;; (emoji +unicode) ; 🙂
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
;;indent-guides ; highlighted indent columns
;;ligatures ; ligatures and symbols to make your code pretty again
@ -55,7 +55,7 @@
;;zen ; distraction-free coding or writing
:editor
;;(evil +everywhere); come to the dark side, we have cookies
;;(evil +everywhere); come to the dark side, we have cookies
file-templates ; auto-snippets for empty files
fold ; (nigh) universal code folding
(format +onsave) ; automated prettiness