summaryrefslogtreecommitdiffhomepage
path: root/attic
diff options
context:
space:
mode:
authorjao <jao@gnu.org>2022-07-22 03:24:47 +0100
committerjao <jao@gnu.org>2022-07-22 03:24:47 +0100
commit8308d63f20923616891907d0bb5fabc1acb68cde (patch)
treedd42ad40d87bbcecbb154b6558a4f3ac938cadaa /attic
parentbda3bcd3e86b689b3d092b8028d141477de75da0 (diff)
downloadelibs-8308d63f20923616891907d0bb5fabc1acb68cde.tar.gz
elibs-8308d63f20923616891907d0bb5fabc1acb68cde.tar.bz2
corfu config
Diffstat (limited to 'attic')
-rw-r--r--attic/misc.el14
1 files changed, 14 insertions, 0 deletions
diff --git a/attic/misc.el b/attic/misc.el
index 038072b..7fb45c9 100644
--- a/attic/misc.el
+++ b/attic/misc.el
@@ -128,6 +128,20 @@
:init (setq twtxt-file (expand-file-name "~/doc/jao.io/twtxt")
twtxt-following
'(("yarn" "https://twtxt.net/user/news/twtxt.txt"))))
+;;; corfu bits
+(defun jao-corfu-enable-no-auto ()
+ (setq-local corfu-auto nil)
+ (corfu-mode 1))
+
+(defmacro jao-corfu-no-auto (mode)
+ (let ((mode-name (intern (format "%s-mode" mode)))
+ (hook-name (intern (format "%s-mode-hook" mode))))
+ `(with-eval-after-load ',mode
+ (add-to-list 'corfu-excluded-modes ',mode-name)
+ (add-hook ',hook-name #'jao-corfu-enable-no-auto))))
+
+(jao-corfu-no-auto eshell)
+
;;; gnus bits
(jao-transient-major-mode gnus-group