summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Mendler <mail@daniel-mendler.de>2024-07-11 20:48:00 +0200
committerDaniel Mendler <mail@daniel-mendler.de>2024-07-11 20:48:00 +0200
commit1641b1d5c1a101dc32d11dcc174d7b9c6783d25b (patch)
treebecf5856489c32d3fce2fc055f68c5d8cb139103
parentc1d75d3cd18d770f869b5e3317c437a1557711ce (diff)
README: Simplify configurations
-rw-r--r--README.org22
1 files changed, 11 insertions, 11 deletions
diff --git a/README.org b/README.org
index d586036..b3bdcc5 100644
--- a/README.org
+++ b/README.org
@@ -134,22 +134,22 @@ Here is an example configuration:
;; A few more useful configurations...
(use-package emacs
- :init
+ :custom
;; TAB cycle if there are only few candidates
- ;; (setq completion-cycle-threshold 3)
+ ;; (completion-cycle-threshold 3)
;; Enable indentation+completion using the TAB key.
;; `completion-at-point' is often bound to M-TAB.
- (setq tab-always-indent 'complete)
+ (tab-always-indent 'complete)
;; Emacs 30 and newer: Disable Ispell completion function. As an alternative,
;; try `cape-dict'.
- (setq text-mode-ispell-word-completion nil)
+ (text-mode-ispell-word-completion nil)
;; Emacs 28 and newer: Hide commands in M-x which do not apply to the current
;; mode. Corfu commands are hidden, since they are not used via M-x. This
;; setting is useful beyond Corfu.
- (setq read-extended-command-predicate #'command-completion-default-include-p))
+ (read-extended-command-predicate #'command-completion-default-include-p))
#+end_src
Dabbrev completion is based on =completion-in-region= and can be used with Corfu.
@@ -179,13 +179,13 @@ default completion styles. The use of Orderless is not a necessity.
#+begin_src emacs-lisp
;; Optionally use the `orderless' completion style.
(use-package orderless
- :init
+ :custom
;; Configure a custom style dispatcher (see the Consult wiki)
- ;; (setq orderless-style-dispatchers '(+orderless-dispatch)
- ;; orderless-component-separator #'orderless-escapable-split-on-space)
- (setq completion-styles '(orderless basic)
- completion-category-defaults nil
- completion-category-overrides '((file (styles partial-completion)))))
+ ;; (orderless-style-dispatchers '(+orderless-dispatch))
+ ;; (orderless-component-separator #'orderless-escapable-split-on-space)
+ (completion-styles '(orderless basic))
+ (completion-category-defaults nil)
+ (completion-category-overrides '((file (styles partial-completion)))))
#+end_src
The =basic= completion style is specified as fallback in addition to =orderless= in