From 185ff896df761ebea14f066e4c9c75b925803355 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Thu, 29 Dec 2022 00:38:18 +0700 Subject: [PATCH] Topspace, trying out corfu --- .config/emacs/init.org | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 5827c7c..614c463 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -284,7 +284,7 @@ Setup other stuff (dolist (mode '(dired-mode-hook lsp-help-mode-hook)) - (add-hook mode (lambda () (display-line-numbers-mode 0)))) + (add-hook mode (lambda () (setq truncate-lines t)))) ;; (straight-use-package 'centaur-tabs) ;; (setq centaur-tabs-set-bar 'under) @@ -765,6 +765,8 @@ The theme of `C-x 4` bindings is that they operate on other windows, so this fun (global-set-key (kbd "C-S-v") #'joe/smooth-scroll-short-down) (global-set-key (kbd "M-S-v") #'joe/smooth-scroll-short-up) +(straight-use-package 'topspace) + #+end_src ** Tabs/Workspaces #+begin_src emacs-lisp @@ -1152,10 +1154,8 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i *** Company #+begin_src emacs-lisp -;; (straight-use-package 'eglot) - -;; (global-set-key [remap dabbrev-expand] 'hippie-expand) +(global-set-key [remap dabbrev-expand] 'hippie-expand) ;; (straight-use-package 'kind-icon) ;; (require 'kind-icon) @@ -1201,6 +1201,15 @@ startup. Reason we have to call this is so the vterm fucntion can call `vterm--i company-backends '((company-capf company-files))) (setq company-transformers '(company-sort-by-occurrence))) (add-hook 'after-init-hook (lambda () (global-company-mode))) +;; (straight-use-package +;; '(corfu :type git :host github :repo "minad/corfu" :branch "preview-first")) +;; (straight-use-package 'corfu) +;; (global-corfu-mode t) +;; (setq corfu-auto t) +;; (setq corfu-auto-delay 0.15) +;; (setq corfu-count 1) +;; (setq corfu-preview-current t) +;; (define-key corfu-map "\C-f" #'corfu-complete) #+end_src *** LSP