diff --git a/init.el b/init.el index ae69f03..586a586 100644 --- a/init.el +++ b/init.el @@ -44,9 +44,10 @@ (require 'libs) (require 'emacs-custom-load-or-ask) +(require 'my-predicates) -(ec/load-or-ask-pred 'my/puppet-p "Are you running on Puppet's computer?") (ec/load-or-ask-pred 'my-ec/is-wsl "Are you running Emacs in WSL?") +(ec/load-or-ask-pred 'my/puppet-p "Are you running on Puppet's computer?") (ec/load-or-ask-pred 'my-ec/enable-exwm "Do you want to load EXMW?") (ec/load-or-ask-pred 'my-ec/at-ti "Are you at TI for work?") (defvar is-windows (or my-ec/is-wsl diff --git a/lisp/my-predicates.el b/lisp/my-predicates.el new file mode 100644 index 0000000..633e7ab --- /dev/null +++ b/lisp/my-predicates.el @@ -0,0 +1,29 @@ +;;; my-predicates.el --- -*- lexical-binding: t -*- + +;; Copyright (C) 2022 Benson Chu + +;; Author: Benson Chu +;; Created: [2022-09-01 10:26] + +;; This file is not part of GNU Emacs + +;; This program is free software: you can redistribute it and/or modify +;; it under the terms of the GNU General Public License as published by +;; the Free Software Foundation, either version 3 of the License, or +;; (at your option) any later version. + +;; This program is distributed in the hope that it will be useful, +;; but WITHOUT ANY WARRANTY; without even the implied warranty of +;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +;; GNU General Public License for more details. + +;; You should have received a copy of the GNU General Public License +;; along with this program. If not, see . + +;;; Commentary: + +;;; Code: + + +(provide 'my-predicates) +;;; my-predicates.el ends here