 (use-package yasnippet
   :straight t
 
-  :hook
-  (prog-mode . yas-minor-mode)
-  (org-mode . yas-minor-mode))
+  :config
+  (yas-global-mode))
 
 ;; packaged snippets
 (use-package yasnippet-snippets


;; dropdown completion (explicitly call with M-TAB)
(use-package corfu
  :straight t
  :hook
  ((prog-mode . corfu-mode)

                     #'corfu--completion-in-region
                   #'consult-completion-in-region)
                 args))))

(use-package company
  :straight t

  :custom
  (company-idle-delay 0)
  (company-minimum-prefix-length 1)
  (company-selection-wrap-around t)
  (company-global-modes '(not org-mode))

  :hook
  (prog-mode . company-mode)

  :config
  (general-def
    :keymaps 'company-active-map
    :states '(emacs insert motion)
    "TAB" #'company-complete-common-or-cycle ; not working?
    "<backtab>" (lambda ()
                  (interactive)
                  (company-complete-common-or-cycle -1))))

;;;;; Documentation

