docs » ReloadConfiguration

Adds a hotkey to reload the hammerspoon configuration, and a pathwatcher to automatically reload on changes.

Download: https://github.com/Hammerspoon/Spoons/raw/master/Spoons/ReloadConfiguration.spoon.zip

API Overview

API Documentation

Variables

watch_paths
Signature ReloadConfiguration.watch_paths
Type Variable
Description

List of directories to watch for changes, defaults to hs.configdir

Methods

bindHotkeys
Signature ReloadConfiguration:bindHotkeys(mapping)
Type Method
Description

Binds hotkeys for ReloadConfiguration

Parameters:

  • mapping - A table containing hotkey modifier/key details for the following items:
    • reloadConfiguration - This will cause the configuration to be reloaded
start
Signature ReloadConfiguration:start()
Type Method
Description

Start ReloadConfiguration

Parameters:

  • None