about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--init.el25
1 files changed, 21 insertions, 4 deletions
diff --git a/init.el b/init.el index 4c2e610..c850b77 100644 --- a/init.el +++ b/init.el
@@ -149,7 +149,7 @@
149(setup completion 149(setup completion
150 (:option completion-ignore-case t 150 (:option completion-ignore-case t
151 read-buffer-completion-ignore-case t 151 read-buffer-completion-ignore-case t
152 completion-styles '(partial-completion substring flex) 152 completion-styles '(substring partial-completion)
153 completion-category-defaults nil 153 completion-category-defaults nil
154 completion-category-overrides 154 completion-category-overrides
155 '((file (styles . (partial-completion))))) 155 '((file (styles . (partial-completion)))))
@@ -929,9 +929,24 @@ if ripgrep is installed, otherwise `consult-grep'."
929 929
930 ;; Competion-at-point (complete-region) 930 ;; Competion-at-point (complete-region)
931 (:global "M-/" completion-at-point) 931 (:global "M-/" completion-at-point)
932 (:option completion-in-region-function #'consult-completion-in-region 932 (:option completion-in-region-function
933 (lambda (&rest args)
934 (apply (if vertico-mode
935 #'consult-completion-in-region
936 #'completion--in-region)
937 args))
933 completion-cycle-threshold 3 938 completion-cycle-threshold 3
934 tab-always-indent 'complete)) 939 tab-always-indent 'complete)
940
941 ;; Completing-read-multple
942 (if (fboundp #'consult-completing-read-multiple)
943 (:advise completing-read-multple
944 :override #'consult-completing-read-multiple)
945
946 (defun crm-indicator (args)
947 (cons (concat "[CRM] " (car args)) (cdr args)))
948 (:advise completing-read-multiple
949 :filter-args #'crm-indicator)))
935 950
936(setup (:straight crux) 951(setup (:straight crux)
937 952
@@ -1139,7 +1154,7 @@ if ripgrep is installed, otherwise `consult-grep'."
1139 :host github 1154 :host github
1140 :repo "oantolin/orderless")) 1155 :repo "oantolin/orderless"))
1141 (require 'orderless) 1156 (require 'orderless)
1142 (:option (prepend completion-styles) 'orderless)) 1157 (:option (append completion-styles) 'orderless))
1143 1158
1144(setup (:straight org) 1159(setup (:straight org)
1145 (:straight org-contrib) 1160 (:straight org-contrib)
@@ -1162,7 +1177,9 @@ if ripgrep is installed, otherwise `consult-grep'."
1162 org-hide-emphasis-markers t 1177 org-hide-emphasis-markers t
1163 org-html-coding-system 'utf-8-unix 1178 org-html-coding-system 'utf-8-unix
1164 org-imenu-depth 3 1179 org-imenu-depth 3
1180 org-outline-path-complete-in-steps nil
1165 org-pretty-entities t 1181 org-pretty-entities t
1182 org-refile-use-outline-path 'file
1166 org-special-ctrl-a/e t 1183 org-special-ctrl-a/e t
1167 org-special-ctrl-k t 1184 org-special-ctrl-k t
1168 org-src-fontify-natively t 1185 org-src-fontify-natively t