summary refs log tree commit diff stats
path: root/config.org
diff options
context:
space:
mode:
authorCase Duckworth2021-02-11 10:45:16 -0600
committerCase Duckworth2021-02-11 10:45:16 -0600
commite217833e8446f234262d6f1611870186b882a967 (patch)
tree6affa837e1a5ca73413efe99be145a22da24fc2e /config.org
parentRemove *Linux/Settings (empty heading) (diff)
downloademacs-e217833e8446f234262d6f1611870186b882a967.tar.gz
emacs-e217833e8446f234262d6f1611870186b882a967.zip
Replace selectrum/prescient with icomplete/orderless
Selectrum had this weird bug where sometimes it'd flash closed all the time.
I'm not sure if this'll fix it -- sometimes the same happens with other buffers
-- but I'm also wanting to try a new completion system.
Diffstat (limited to 'config.org')
-rw-r--r--config.org72
1 files changed, 58 insertions, 14 deletions
diff --git a/config.org b/config.org index f8c0f55..88949b9 100644 --- a/config.org +++ b/config.org
@@ -747,7 +747,7 @@ to /hide/ those contents.
747 read-file-name-completion-ignore-case t) 747 read-file-name-completion-ignore-case t)
748#+end_src 748#+end_src
749 749
750*** Selectrum :package: 750*** COMMENT Selectrum :package:
751 751
752*COMMENT 2021-02-01*: For some reason, selectrum will randomly do a thing where 752*COMMENT 2021-02-01*: For some reason, selectrum will randomly do a thing where
753it, like, flashes up and down in the minibuffer? I don't know how to explain 753it, like, flashes up and down in the minibuffer? I don't know how to explain
@@ -767,18 +767,7 @@ for now .... I just want to see my completions.
767 (selectrum-mode +1) 767 (selectrum-mode +1)
768#+end_src 768#+end_src
769 769
770*** COMMENT Icomplete 770*** COMMENT Prescient :package:
771
772#+begin_src emacs-lisp :noweb-ref packages
773 (straight-use-package 'icomplete-vertical)
774#+end_src
775
776#+begin_src emacs-lisp :noweb-ref modes
777 (icomplete-mode +1)
778 (icomplete-vertical-mode +1)
779#+end_src
780
781*** Prescient :package:
782 771
783#+begin_src emacs-lisp :noweb-ref packages 772#+begin_src emacs-lisp :noweb-ref packages
784 (straight-use-package 'prescient) 773 (straight-use-package 'prescient)
@@ -791,7 +780,7 @@ Prescient can persist itself too.
791 (prescient-persist-mode +1) 780 (prescient-persist-mode +1)
792#+end_src 781#+end_src
793 782
794**** Selectrum integration 783**** COMMENT Selectrum integration
795 784
796Let's have =prescient= and =selectrum= work together. 785Let's have =prescient= and =selectrum= work together.
797 786
@@ -804,6 +793,61 @@ Let's have =prescient= and =selectrum= work together.
804 (selectrum-prescient-mode +1)) 793 (selectrum-prescient-mode +1))
805#+end_src 794#+end_src
806 795
796*** Icomplete
797
798#+begin_src emacs-lisp :noweb-ref packages
799 (straight-use-package 'icomplete-vertical)
800#+end_src
801
802#+begin_src emacs-lisp :noweb-ref settings
803 (setq-default
804 completion-styles '(partial-completion substring flex)
805 completion-category-overrides '((file
806 (styles basic substring flex))))
807 (setq-default
808 icomplete-delay-completions-threshold 0
809 icomplete-max-delay-chars 0
810 icomplete-compute-delay 0
811 icomplete-show-matches-on-no-input t
812 icomplete-hide-common-prefix nil
813 icomplete-with-completion-tables t
814 icomplete-in-buffer t)
815#+end_src
816
817#+begin_src emacs-lisp :noweb-ref bindings
818 (with-eval-after-load 'icomplete
819 (define-key icomplete-minibuffer-map (kbd "<down>")
820 #'icomplete-forward-completions)
821 (define-key icomplete-minibuffer-map (kbd "C-n")
822 #'icomplete-forward-completions)
823 (define-key icomplete-minibuffer-map (kbd "<up>")
824 #'icomplete-backward-completions)
825 (define-key icomplete-minibuffer-map (kbd "C-p")
826 #'icomplete-backward-completions))
827
828 (with-eval-after-load 'icomplete-vertical
829 (define-key icomplete-minibuffer-map (kbd "C-v")
830 #'icomplete-vertical-toggle))
831#+end_src
832
833#+begin_src emacs-lisp :noweb-ref modes
834 (fido-mode -1) ; I take care of this myself
835 (icomplete-mode +1)
836 (icomplete-vertical-mode +1)
837#+end_src
838
839*** Orderless :package:
840
841#+begin_src emacs-lisp :noweb-ref packages
842 (straight-use-package 'orderless)
843 (require 'orderless)
844#+end_src
845
846#+begin_src emacs-lisp :noweb-ref settings
847 (setq-default
848 completion-styles '(orderless))
849#+end_src
850
807*** Consult :package: 851*** Consult :package:
808 852
809#+begin_src emacs-lisp :noweb-ref modes 853#+begin_src emacs-lisp :noweb-ref modes