From 2df5881866e27016f2a89a4a04481f2fe9083c1f Mon Sep 17 00:00:00 2001 From: jao Date: Fri, 7 May 2021 00:29:51 +0100 Subject: attic --- attic/misc.org | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'attic') diff --git a/attic/misc.org b/attic/misc.org index f11d36c..cb98a99 100644 --- a/attic/misc.org +++ b/attic/misc.org @@ -99,3 +99,24 @@ '("ViewInBrowser" . mu4e-action-view-in-browser) t)) #+end_src +* corfu and dabbrev + #+begin_src emacs-lisp :load no + (jao-load-path "corfu") + (use-package corfu + + :init (setq corfu-cycle t + corfu-excluded-modes '(clojure-mode) + tab-always-indent 'complete) + + :config + (corfu-global-mode) + (use-package dabbrev + ;; Swap M-/ and C-M-/ + :bind (("M-/" . dabbrev-completion) + ("C-M-/" . dabbrev-expand))) + + :bind (:map corfu-map + ("TAB" . corfu-next) + ("S-TAB" . corfu-previous))) + + #+end_src -- cgit v1.2.3