aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorshoshin <shoshin@cicadas.surf>2022-05-22 20:37:49 -0500
committershoshin <shoshin@cicadas.surf>2022-05-22 20:37:49 -0500
commit1866cb9f627eab7e46d2869c974b18d0c94faeda (patch)
tree3d877ea50d5ed78f71f342b1795cda909011239c
parentbe9e62cadb0954c39a04ea36b19b594325e05908 (diff)
Add: corfu-popup for terminal mode
-rw-r--r--shoshin-config.el6
-rw-r--r--shoshin-config.org10
2 files changed, 14 insertions, 2 deletions
diff --git a/shoshin-config.el b/shoshin-config.el
index 33c7504..292eaa2 100644
--- a/shoshin-config.el
+++ b/shoshin-config.el
@@ -37,6 +37,10 @@
corfu-quit-no-match t)
(global-corfu-mode t)
+(package-install 'corfu-popup)
+(unless (display-graphic-p)
+ (corfu-terminal-mode +1))
+
(package-install 'embark)
(package-install 'marginalia)
@@ -73,7 +77,7 @@
(setq srht-username "shoshin")
;;; User Interface
-(unless (null window-system)
+(if (display-graphic-p)
(scroll-bar-mode nil)
(fringe-mode '(8 . 0)))
diff --git a/shoshin-config.org b/shoshin-config.org
index 7d4f51f..edd0933 100644
--- a/shoshin-config.org
+++ b/shoshin-config.org
@@ -230,6 +230,14 @@ the new. it seems like consult does this as well as switching themes
(global-corfu-mode t)
#+end_src
+*** corfu-popon enables in terminal interface
+
+#+begin_src emacs-lisp
+ (package-install 'corfu-popup)
+ (unless (display-graphic-p)
+ (corfu-terminal-mode +1))
+#+end_src
+
** embark
#+begin_src emacs-lisp
@@ -348,7 +356,7 @@ an API token is stored in my ~.authinfo~ file.
** basic Emacs UI tweaks
#+begin_src emacs-lisp
- (unless (null window-system)
+ (if (display-graphic-p)
(scroll-bar-mode nil)
(fringe-mode '(8 . 0)))