IMPORTANT NOTICE: Devheroes public code hosting will shut down at 1st of March 2023. Due to some difficulties, we have to shut down the instance. Since codeberg.org is pretty mature and welcoming, We highly recommend you to move your code there. Please be advised that on 1st of March, your data will be removed. Thanks for your time with us, and may the source be with you.

Browse Source

Add the when-not-wm macro

ep8
Sameer Rahmani 7 months ago
parent
commit
2a00d784e7
  1. 6
      core/fg42/utils.el

6
core/fg42/utils.el

@ -177,6 +177,12 @@ is non-nil value it means that the function can be called interactively." @@ -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."

Loading…
Cancel
Save