Skip to content

syvlorg/aiern-god-state

 
 

Repository files navigation

aiern God State

This is an aiern-mode state for using god-mode.

It provides a command aiern-execute-in-god-state that switches to god-mode for the next command. I bind it to ,

(aiern-define-key 'normal global-map "," 'aiern-execute-in-god-state)

for an automatically-configured leader key.

Since aiern-god-state includes an indicator in the mode-line, you may want to use diminish to keep your mode-line uncluttered, e.g.

(add-hook 'aiern-god-state-entry-hook (lambda () (diminish 'god-local-mode)))
(add-hook 'aiern-god-state-exit-hook (lambda () (diminish-undo 'god-local-mode)))

It's handy to be able to abort a `aiern-god-state' command. The following will make the key unconditionally exit aiern-god-state.

(aiern-define-key 'god global-map [escape] 'aiern-god-state-bail)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Emacs Lisp 56.7%
  • Nix 43.3%