4 Commits

Author SHA1 Message Date
Marc 2bd76d7c74 cape fixes 1 month ago
Marc b0aecd9330 added dabbrev config 1 month ago
Marc 58c3ca460c corfu fixes 1 month ago
Marc b4b04cbbdc fixes in embark 1 month ago
1 changed files with 27 additions and 12 deletions
Split View
  1. 39
      config.org

39
config.org

@ -469,7 +469,6 @@ Some windows specific stuff
(setq w32-pipe-read-delay 0))
(when (boundp 'w32-get-true-file-attributes)
(setq w32-get-true-file-attributes nil))
(setq text-mode-ispell-word-completion nil) ;;got errors since emacs30.1 (2025-04-14) in corfu/ispell, no local dictionary?
)
#+END_SRC
@ -777,6 +776,8 @@ Completion ui for the buffer.
(corfu-popupinfo-delay '(1.0 . 0.0)) ;1s for first popup, instant for subsequent popups
(corfu-popupinfo-max-width 70)
(corfu-popupinfo-max-height 20)
(corfu-preview-current t)
(text-mode-ispell-word-completion nil) ;;got errors since emacs30.1 (2025-04-14) in corfu/ispell, try cape-dict as an alternative
:init
(global-corfu-mode)
; (corfu-popupinfo-mode) ; causes corfu window to stay
@ -806,7 +807,18 @@ Completion ui for the buffer.
;; enable indentation + completion using TAB
(setq tab-always-indent 'complete))
#+end_src
* Dabbrev
#+begin_src emacs-lisp
(use-package dabbrev
:ensure nil
:bind (("M-/" . dabbrev-completion)
("C-M-/" . dabbrev-expand))
:config
(add-to-list 'dabbrev-ignored-buffer-regexps "\\` ")
(add-to-list 'dabbrev-ignored-buffer-modes 'doc-view-mode)
(add-to-list 'dabbrev-ignored-buffer-modes 'pdf-view-mode)
(add-to-list 'dabbrev-ignored-buffer-modes 'tags-table-mode))
#+end_src
* Cape
[[https://github.com/minad/cape][Cape Github]]
Backend completions for the buffer (not minibuffer).
@ -817,16 +829,18 @@ dabbrev, file, history, keyword, tex, sgml, rfc1345, abbrev, ispell, dict, symbo
(use-package cape
:ensure t
:bind
(("C-c p p" . completion-at-point) ;; capf
("C-c p t" . complete-tag) ;; etags
("C-c p d" . cape-dabbrev)
("C-c p h" . cape-history)
("C-c p f" . cape-file))
("C-c p" . cape-prefix-map)
;; (("C-c p p" . completion-at-point) ;; capf
;; ("C-c p t" . complete-tag) ;; etags
;; ("C-c p d" . cape-dabbrev)
;; ("C-c p h" . cape-history)
;; ("C-c p f" . cape-file))
:init
(advice-add #'lsp-completion-at-point :around #'cape-wrap-noninterruptible) ;; for performance issues with lsp
(add-to-list 'completion-at-point-functions #'cape-dabbrev)
(add-to-list 'completion-at-point-functions #'cape-file)
(add-to-list 'completion-at-point-functions #'cape-history))
(add-hook 'completion-at-point-functions #'cape-dabbrev)
(add-hook 'completion-at-point-functions #'cape-file)
(add-hook 'completion-at-point-functions #'cape-elisp-block)
(add-hook 'completion-at-point-functions #'cape-history))
#+end_src
* kind-icon
@ -906,7 +920,8 @@ Actions on the completion buffer.
(use-package embark
:ensure t
:bind
(("C-S-a" . embark-act)
(("C-," . embark-act)
("C-;" . embark-act-all)
("C-h B" . embark-bindings))
:init
(setq prefix-help-command #'embark-prefix-help-command)
@ -922,7 +937,7 @@ Actions on the completion buffer.
:after (embark consult)
:demand t
:hook
(embark-collect-mode . embark-consult-preview-minor-mode))
(embark-collect-mode . consult-preview-at-point-mode))
#+end_src
* Tree-sitter
#+begin_src emacs-lisp

Loading…
Cancel
Save