doom: move new bhankas-org-agenda-limit-indirect-* functions to bhankas.el

This commit is contained in:
Payas Relekar 2023-11-11 13:54:12 +05:30
parent 8c4b9c4663
commit 6743a23644

View file

@ -381,15 +381,6 @@ As such, relying on imperative config evaluation can turn into gotchas. While th
:init
(require 'ffap)
(setq! org-fold-core-style 'overlays)
(defun bhankas-org-agenda-limit-indirect-max (og-fun &rest args)
(setq bhankas-fit-buffer-limit-max t)
(apply og-fun args)
(makunbound bhankas-fit-buffer-limit-max))
(defun bhankas-org-agenda-limit-indirect-buffer (og-fun &rest args)
(when (boundp 'bhankas-fit-buffer-limit-max)
(setq args (append args '(20))))
(apply og-fun args))
:config
(map!
:map org-mode-map