Emacs: Monitor location and set lat/long (OSX)
Alan Pearce alan.pearce@spotcap.com
Mon, 16 Nov 2015 16:42:04 +0100
1 files changed, 13 insertions(+), 0 deletions(-)
jump to
M tag-emacs/emacs.d/init.org → tag-emacs/emacs.d/init.org
@@ -841,6 +841,19 @@ ** Time of Day #+BEGIN_SRC emacs-lisp + (req-package osx-location + :if (eq system-type 'darwin) + :config (progn + (add-hook 'osx-location-changed-hook + (lambda () + (setq calendar-latitude osx-location-latitude + calendar-longitude osx-location-longitude + calendar-location-name (format "%s, %s" osx-location-latitude osx-location-longitude)) + (rase-start))) + (osx-location-watch))) +#+END_SRC + +#+BEGIN_SRC emacs-lisp (req-package rase :config (progn (defun switch-themes (sun-event &optional first-run)