summary refs log tree commit diff stats
path: root/tag-emacs
diff options
context:
space:
mode:
authorAlan Pearce2015-10-16 11:24:37 +0200
committerAlan Pearce2015-10-16 11:24:37 +0200
commit88b381faace9ac226e340cc4db8fba6dd329b9a7 (patch)
tree62b1a2036be16872d909e9a1fa2f9963904ff065 /tag-emacs
parent0f5ee55c871c91f6f74ddc6a7eec24992e124525 (diff)
downloaddotfiles-88b381faace9ac226e340cc4db8fba6dd329b9a7.tar.lz
dotfiles-88b381faace9ac226e340cc4db8fba6dd329b9a7.tar.zst
dotfiles-88b381faace9ac226e340cc4db8fba6dd329b9a7.zip
Emacs: Configure spotlight on OS X
Diffstat (limited to 'tag-emacs')
-rw-r--r--tag-emacs/emacs.d/Cask1
-rw-r--r--tag-emacs/emacs.d/init.org10
2 files changed, 11 insertions, 0 deletions
diff --git a/tag-emacs/emacs.d/Cask b/tag-emacs/emacs.d/Cask
index ba75ee8..ead4a52 100644
--- a/tag-emacs/emacs.d/Cask
+++ b/tag-emacs/emacs.d/Cask
@@ -130,6 +130,7 @@
 (depends-on "smex")
 (depends-on "solarized-theme")
 (depends-on "spinner")
+(depends-on "spotlight")
 (depends-on "swiper")
 (depends-on "tern")
 (depends-on "toml-mode")
diff --git a/tag-emacs/emacs.d/init.org b/tag-emacs/emacs.d/init.org
index 677358e..008b5b1 100644
--- a/tag-emacs/emacs.d/init.org
+++ b/tag-emacs/emacs.d/init.org
@@ -514,6 +514,16 @@ I only use this occasionally, but it’s nice for files outside of projects.
                (recentf-mode 1)))
 #+END_SRC
 
+** spotlight
+
+An awesome way to open files on OS X.
+
+#+BEGIN_SRC emacs-lisp
+  (req-package spotlight
+    :if (eq system-type 'darwin)
+    :config (setq spotlight-tmp-file "/tmp/.emacs-spotlight-tmp-file"))
+#+END_SRC
+
 ** saveplace
 
 It.. saves the position I visited a file at last.  Might try turning