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

Run pre/post cube hooks on the cube macro

changelogo
Sameer Rahmani 2 years ago
parent
commit
bd0e09391e
  1. 8
      core/fg42/cube.el

8
core/fg42/cube.el

@ -36,7 +36,9 @@ @@ -36,7 +36,9 @@
(pre-lang-server-up-hook (intern (format "%s-pre-lang-server-up-hook" cube-name)))
(post-lang-server-up-hook (intern (format "%s-post-lang-server-up-hook" cube-name)))
(pre-lang-server-down-hook (intern (format "%s-pre-lang-server-down-hook" cube-name)))
(post-lang-server-down-hook (intern (format "%s-post-lang-server-down-hook" cube-name))))
(post-lang-server-down-hook (intern (format "%s-post-lang-server-down-hook" cube-name)))
(pre-init-hook (intern (format "%s-pre-init-hook" cube-name)))
(post-init-hook (intern (format "%s-post-init-hook" cube-name))))
`(progn
;; Params variable contains the list of params the is passed to
@ -86,7 +88,9 @@ @@ -86,7 +88,9 @@
(progn
(setq ,active-var t)
(setq ,params-var params)
,@body))))))
(run-hook (quote ,pre-init-hook))
,@body
(run-hook (quote ,post-init-hook))))))))
(provide 'fg42/cube)

Loading…
Cancel
Save