On.el
Hooks for faster Emacs startup – GitHub mirror
Install / Use
/learn @axgfn/On.elREADME
#+TITLE: on.el -- utility hooks and functions from Doom Emacs
This package exposes a number of utility hooks and functions ported from Doom Emacs. The hooks make it easier to speed up Emacs startup by providing finer-grained control of the timing at which packages are loaded.
For example, =use-package= users can delay loading the =which-key= package until the first key is pressed:
#+BEGIN_SRC emacs-lisp (use-package which-key :hook (on-first-input . which-key-mode)) #+END_SRC
The list of hooks provided by =on.el= is as follows:
- =on-first-input-hook=: run before the first user input.
- =on-first-file-hook=: run before the first interactively opened file.
- =on-first-buffer-hook=: run before the first interactively opened buffer.
- =on-init-ui-hook=: run when the UI has been initialized. This one is useful for setting fonts and enabling custom themes without having to worry about whether Emacs is running as a daemon or not.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
