Skip to content

elp-revive/on.el

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

License: MIT JCS-ELPA

on.el -- utility hooks and functions from Doom Emacs

CI

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:

(use-package which-key
  :hook (on-first-input . which-key-mode))

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.

About

Hooks for faster Emacs startup – GitHub mirror

Resources

License

MIT, MIT licenses found

Licenses found

MIT
LICENSE
MIT
LICENSE.txt

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

  •  
  •  

Packages

 
 
 

Contributors

Languages

  • Emacs Lisp 93.9%
  • Makefile 6.1%