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

Source Source/ReloadConfiguration.spoon/init.lua line 18

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
Returns
Source Source/ReloadConfiguration.spoon/init.lua line 23
start
Signature ReloadConfiguration:start()
Type Method
Description

Start ReloadConfiguration

Parameters
  • None
Returns
Source Source/ReloadConfiguration.spoon/init.lua line 35