Files
nix-doom-emacs/advice.el
2019-11-23 10:41:20 +01:00

21 lines
1.0 KiB
EmacsLisp

;;; -*- lexical-binding: t; -*-
(advice-add 'nix-straight-get-used-packages
:before (lambda (&rest r)
(message "[nix-doom-emacs] Advising doom installer to gather packages to install...")
(advice-add 'doom-cli-reload-autoloads
:override (lambda (&optional file force-p)
(message "[nix-doom-emacs] Skipping generating autoloads...")))
(advice-add 'doom--format-print
:around (lambda (orig-print &rest r)
(let ((noninteractive nil))
(apply orig-print r))))))
(advice-add 'y-or-n-p
:override (lambda (q)
(message "%s \n[nix-doom-emacs] --> answering NO" q)
nil))
;;; org is not installed from git, so no fixup is needed
(advice-add '+org-fix-package-h
:override (lambda (&rest r)))