diff options
author | Alan Pearce | 2015-11-16 16:42:04 +0100 |
---|---|---|
committer | Alan Pearce | 2015-11-16 16:42:04 +0100 |
commit | a6486abd8b4f7e47884bf324ac7fcb7b76d4e260 (patch) | |
tree | 3498d7dd74f590b7c92aef6c8b324c9b50ee9a8f | |
parent | f6c607e6a350eea8d5b7cfe20f9fe47317d03aee (diff) | |
download | nixfiles-a6486abd8b4f7e47884bf324ac7fcb7b76d4e260.tar.lz nixfiles-a6486abd8b4f7e47884bf324ac7fcb7b76d4e260.tar.zst nixfiles-a6486abd8b4f7e47884bf324ac7fcb7b76d4e260.zip |
Emacs: Monitor location and set lat/long (OSX)
-rw-r--r-- | tag-emacs/emacs.d/init.org | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org index 4dcbe057..b832b037 100644 --- a/tag-emacs/emacs.d/init.org +++ b/tag-emacs/emacs.d/init.org @@ -841,6 +841,19 @@ Sometimes I want to insert a date or time into a buffer. ** 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) |