switched from company to corfu with basic config
This commit is contained in:
parent
1c9ac95772
commit
adf6c73340
22
config.el
22
config.el
|
@ -108,9 +108,9 @@
|
||||||
(after! org
|
(after! org
|
||||||
(define-abbrev org-mode-abbrev-table "osb"
|
(define-abbrev org-mode-abbrev-table "osb"
|
||||||
'(lambda () (insert "#+BEGIN_SRC ")
|
'(lambda () (insert "#+BEGIN_SRC ")
|
||||||
(backward-char 13)
|
(backward-char 13)
|
||||||
(insert "\n\n#+END_SRC")
|
(insert "\n\n#+END_SRC")
|
||||||
(forward-char 13)))
|
(forward-char 13)))
|
||||||
(abbrev-mode 1)) ;; enable abbrev mode
|
(abbrev-mode 1)) ;; enable abbrev mode
|
||||||
;; reload files on save
|
;; reload files on save
|
||||||
(global-auto-revert-mode 1)
|
(global-auto-revert-mode 1)
|
||||||
|
@ -119,9 +119,21 @@
|
||||||
(after! org-journal
|
(after! org-journal
|
||||||
(setq org-journal-dir "~/Nextcloud/org/journal")
|
(setq org-journal-dir "~/Nextcloud/org/journal")
|
||||||
(setq org-journal-file-format "%Y_%m_%d.org")
|
(setq org-journal-file-format "%Y_%m_%d.org")
|
||||||
)
|
(setq org-journal-file-header "")
|
||||||
|
)
|
||||||
|
|
||||||
(after! org-download
|
(after! org-download
|
||||||
(setq-default org-download-image-dir "~/Nextcloud/org/img")
|
(setq-default org-download-image-dir "~/Nextcloud/org/img")
|
||||||
(add-hook 'dired-mode-hook 'org-download-enable)
|
(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
|
||||||
|
|
8
init.el
8
init.el
|
@ -23,8 +23,8 @@
|
||||||
;;layout ; auie,ctsrnm is the superior home row
|
;;layout ; auie,ctsrnm is the superior home row
|
||||||
|
|
||||||
:completion
|
:completion
|
||||||
company ; the ultimate code completion backend
|
;; company ; the ultimate code completion backend
|
||||||
;; (corfu +orderless) ; complete with cap(f), cape and a flying feather!
|
(corfu +orderless) ; complete with cap(f), cape and a flying feather!
|
||||||
;;helm ; the *other* search engine for love and life
|
;;helm ; the *other* search engine for love and life
|
||||||
;;ido ; the other *other* search engine...
|
;;ido ; the other *other* search engine...
|
||||||
;;ivy ; a search engine for love and life
|
;;ivy ; a search engine for love and life
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
doom ; what makes DOOM look the way it does
|
doom ; what makes DOOM look the way it does
|
||||||
doom-dashboard ; a nifty splash screen for Emacs
|
doom-dashboard ; a nifty splash screen for Emacs
|
||||||
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
doom-quit ; DOOM quit-message prompts when you quit Emacs
|
||||||
;; (emoji +unicode) ; 🙂
|
;; (emoji +unicode) ; 🙂
|
||||||
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
hl-todo ; highlight TODO/FIXME/NOTE/DEPRECATED/HACK/REVIEW
|
||||||
;;indent-guides ; highlighted indent columns
|
;;indent-guides ; highlighted indent columns
|
||||||
;;ligatures ; ligatures and symbols to make your code pretty again
|
;;ligatures ; ligatures and symbols to make your code pretty again
|
||||||
|
@ -55,7 +55,7 @@
|
||||||
;;zen ; distraction-free coding or writing
|
;;zen ; distraction-free coding or writing
|
||||||
|
|
||||||
:editor
|
: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
|
file-templates ; auto-snippets for empty files
|
||||||
fold ; (nigh) universal code folding
|
fold ; (nigh) universal code folding
|
||||||
(format +onsave) ; automated prettiness
|
(format +onsave) ; automated prettiness
|
||||||
|
|
Loading…
Reference in New Issue