Add the when-not-wm macro
This commit is contained in:
rodzic
695d452845
commit
2a00d784e7
|
@ -177,6 +177,12 @@ is non-nil value it means that the function can be called interactively."
|
|||
`(progn ,@body)
|
||||
nil))
|
||||
|
||||
(defmacro when-not-wm (&rest body)
|
||||
"Run the BODY only if not in the wm mode."
|
||||
(if (not (string= (getenv "FG42_WM") "true"))
|
||||
`(progn ,@body)
|
||||
nil))
|
||||
|
||||
|
||||
(defmacro fg42/log (tag args)
|
||||
"If the debug is enabled log the give ARGS."
|
||||
|
|
Ładowanie…
Reference in New Issue