

( recentf-mode 1 ) Track recent ( run-at-time nil ( * 2 60 ) 'recentf-save-list ) Save files every 2 minutes ( global-auto-revert-mode ) ( setq-default fill-column 79 ) Feeling a bit old school with 80 characters. ( electric-pair-mode ) ( make-directory "~/.emacs.d/autosaves/" t ) Ensuring I have an autosave directory. This flag allowed me to more easily troubleshoot those loadĪttempts." ) ( defconst jf/github-username "jeremyf" "My username on github." ) ( global-so-long-mode ) Handle long files. In a previous iteration, I loaded lots of separate '*.el' files. Stops a NSDistributedNotificationCenter watcherĮxtensions/distributednotifications/libdistributednotifications.( setq user-full-name "Jeremy Friesen" user-mail-address ) ( defconst jf/silence-loading-log t "When t log to stdout load messages from this configuration. Hs.distributednotifications:stop() -> object Starts a NSDistributedNotificationCenter watcherĮxtensions/distributednotifications/libdistributednotifications.m line 119

Hs.distributednotifications:start() -> object See Įxtensions/distributednotifications/libdistributednotifications.m line 40 On Catalina and above, it is no longer possible to observe all notifications - the name parameter is effectively now required.A value of nil will cause all sending objects to be watched. object - An optional string containing the name of sending objects to watch for.A value of nil will cause all notifications to be watched on macOS versions earlier than Catalina. name - An optional string containing the name of notifications to watch for.

Tag change notification hammerspoon code#
You can discover the notifications that are being posted on your system with some code like this: foo = hs.distributednotifications.new(function(name, object, userInfo) print(string.format("name: %s\nobject: %s\nuserInfo: %s\n", name, object, hs.inspect(userInfo))) end) There are many notifications posted by parts of OS X, and third party apps, which may be interesting to react to using this module. Interact with NSDistributedNotificationCenter Hammerspoon docs: hs.distributednotifications docs » hs.distributednotifications
