diff --git a/config.el b/config.el index 01936c2..a865051 100644 --- a/config.el +++ b/config.el @@ -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 diff --git a/init.el b/init.el index b0e9098..0e6b84e 100644 --- a/init.el +++ b/init.el @@ -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