doomemacs/modules/tools/prodigy/config.el
Henrik Lissner d8b1e469bc
Introduce autodefs to replace some settings
+ :popup -> set-popup-rule!
+ :popups -> set-popup-rules!
+ :company-backend -> set-company-backend!
+ :evil-state -> set-evil-initial-state!

I am slowly phasing out the setting system (def-setting! and set!),
starting with these.

What are autodefs? These are functions that are always defined, whether
or not their respective modules are enabled. However, when their modules
are disabled, they are replaced with macros that no-op and don't
waste time evaluating their arguments.

The old set! function will still work, for a while.
2018-06-15 03:42:01 +02:00

14 lines
385 B
EmacsLisp

;;; tools/prodigy/config.el -*- lexical-binding: t; -*-
(after! prodigy
(set-evil-initial-state! 'prodigy-mode 'emacs)
;; Make services, etc persistent between Emacs sessions
(doom-cache-persist
:prodigy '(prodigy-services prodigy-tags prodigy-filters))
(advice-add #'prodigy-services :around #'+prodigy*services)
(define-key prodigy-mode-map "d" #'+prodigy/delete))