From 525f5b95ceee9ff6b742a31baf9a19253a27803c Mon Sep 17 00:00:00 2001
From: Kyle Meyer <kyle@kyleam.com>
Date: Sat, 25 Oct 2014 00:17:59 -0400
Subject: Don't ignore PDFs in completions

---
 lisp/init-ido.el | 2 +-
 lisp/init-org.el | 8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/lisp/init-ido.el b/lisp/init-ido.el
index da40bd3..78f6140 100644
--- a/lisp/init-ido.el
+++ b/lisp/init-ido.el
@@ -23,7 +23,7 @@
       '(".org" ".txt" ".md" ".rst" ".tex" ".py" ".el" ".hs"))
 
 (setq completion-ignored-extensions
-      (append '(".pdf" ".out" ".log" ".fls" ".fdb" ".fdb_latexmk")
+      (append '(".out" ".log" ".fls" ".fdb" ".fdb_latexmk")
               completion-ignored-extensions))
 
 ;; Disable ido faces to see flx highlights.
diff --git a/lisp/init-org.el b/lisp/init-org.el
index a51f17a..4f3e2bc 100644
--- a/lisp/init-org.el
+++ b/lisp/init-org.el
@@ -50,13 +50,9 @@
       (user-error "No file at point"))))
 
 (defun km/org-open-file ()
-  "Interactive version of `org-open-file'.
-The value of `completion-ignored-extensions' is modified so that
-PDF files are not ignored."
+  "Interactive version of `org-open-file'."
   (interactive)
-  (let ((completion-ignored-extensions
-         (remove ".pdf" completion-ignored-extensions)))
-    (org-open-file (read-file-name "Open file: " nil nil t))))
+  (org-open-file (read-file-name "Open file: " nil nil t)))
 
 (defun km/org-open-annex-file ()
   "Open a git annex file with `org-open-file'."
-- 
cgit v1.2.3