complete-computing-environment/run_hooks_after_init.org

26 lines
899 B
Org Mode

:PROPERTIES:
:ID: cce/run_hooks_after_init
:END:
#+TITLE: Run Hooks After init
#+filetags: :Emacs:CCE:
#+PROPERTY: header-args :mkdirp yes :results none
#+PROPERTY: header-args:emacs-lisp :tangle run-hooks.el
#+ARROYO_EMACS_MODULE: run-hooks
#+ARCOLOGY_KEY: cce/run-hooks
#+ARCOLOGY_ALLOW_CRAWL: t
#+begin_src emacs-lisp
(provide 'cce/run-hooks)
#+end_src
This code runs at the end of the =init= file generated in my [[id:cce/cce][Index of CCE Functionality]]. Throughout the CCE, there's code which attaches functions to =after-cce-hook= ([[elisp:(deadgrep "after-cce-hook")][(deadgrep "after-cce-hook")]] to take a look), this makes sure they're run after everything else is initialized.
#+begin_src emacs-lisp
(add-hook 'after-cce-hook
(lambda ()
(message "The Complete Computing Environment has been loaded")))
(run-hooks #'after-cce-hook)
#+end_src