about summary refs log tree commit diff
path: root/emacs-elisp/packages/cape.el
blob: 2e9777c4150845680ecf02ec8a34bd19ba6a55b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
;; Cape adds setting what completions are used where
;;; https://github.com/minad/cape
(use-package cape)
(keymap-global-set "C-c c" 'cape-prefix-map)

;; Fall back to dabbrev without other completions
(setq dabbrev-case-fold-search t)
;;(add-to-list 'completion-at-point-functions #'cape-dabbrev)
(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)