mirror of
https://github.com/pestctrl/emacs-config.git
synced 2026-02-16 08:14:15 +00:00
Keep all predicates in one place?
This commit is contained in:
parent
c8a85f7ae0
commit
dd679cb3bf
2 changed files with 31 additions and 1 deletions
3
init.el
3
init.el
|
|
@ -44,9 +44,10 @@
|
||||||
|
|
||||||
(require 'libs)
|
(require 'libs)
|
||||||
(require 'emacs-custom-load-or-ask)
|
(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-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/enable-exwm "Do you want to load EXMW?")
|
||||||
(ec/load-or-ask-pred 'my-ec/at-ti "Are you at TI for work?")
|
(ec/load-or-ask-pred 'my-ec/at-ti "Are you at TI for work?")
|
||||||
(defvar is-windows (or my-ec/is-wsl
|
(defvar is-windows (or my-ec/is-wsl
|
||||||
|
|
|
||||||
29
lisp/my-predicates.el
Normal file
29
lisp/my-predicates.el
Normal file
|
|
@ -0,0 +1,29 @@
|
||||||
|
;;; my-predicates.el --- -*- lexical-binding: t -*-
|
||||||
|
|
||||||
|
;; Copyright (C) 2022 Benson Chu
|
||||||
|
|
||||||
|
;; Author: Benson Chu <bensonchu457@gmail.com>
|
||||||
|
;; 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 <https://www.gnu.org/licenses/>.
|
||||||
|
|
||||||
|
;;; Commentary:
|
||||||
|
|
||||||
|
;;; Code:
|
||||||
|
|
||||||
|
|
||||||
|
(provide 'my-predicates)
|
||||||
|
;;; my-predicates.el ends here
|
||||||
Loading…
Reference in a new issue