Skip to content

Latest commit

 

History

History
40 lines (30 loc) · 2.93 KB

ReloadConfiguration.md

File metadata and controls

40 lines (30 loc) · 2.93 KB

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

  • Variables - Configurable values
  • watch_paths
  • Methods - API calls which can only be made on an object returned by a constructor
  • bindHotkeys
  • start

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