doomemacs/core/lib/macros-popwin.el

14 lines
395 B
EmacsLisp
Raw Normal View History

2015-06-06 18:40:33 +08:00
;;; macros-popwin.el
;;;###autoload
2015-06-15 15:05:52 +08:00
(defmacro add-popwin-rule! (&rest forms)
2015-06-06 18:40:33 +08:00
"Register a rule for popwin. See `popwin:special-display-config'.
Example:
2015-06-15 15:05:52 +08:00
(add-popwin-rule! \"^\\*Flycheck.*\\*$\" :regexp t :position bottom :height 0.25 :noselect t)"
2015-06-06 18:40:33 +08:00
(declare (indent defun))
2015-06-15 15:05:52 +08:00
`(push '(,@forms) popwin:special-display-config))
2015-06-06 18:40:33 +08:00
(provide 'macros-popwin)
;;; macros-popwin.el ends here