diff --git a/init.el b/init.el index eafd145..68904ed 100644 --- a/init.el +++ b/init.el @@ -94,32 +94,9 @@ ;; worked"™ in vim? That's what you pay with for org mode (add-hook 'cc-mode-hook 'tabs-yay) -;; time to throw out this "DocView" abomination: full featured pdf -;; viewer of antiquity, that emacs uses today! -(defun ensc/mailcap-mime-data-filter (filter) - (mapcar (lambda(major) - (append (list (car major)) - (remove nil - (mapcar (lambda(minor) - (when (funcall filter (car major) (car minor) (cdr minor)) - minor)) - (cdr major))))) - mailcap-mime-data)) - -(defun ensc/no-pdf-doc-view-filter (major minor spec) - (if (and (string= major "application") - (string= minor "pdf") - (member '(viewer . doc-view-mode) spec)) - nil - t)) - -(eval-after-load 'mailcap - '(progn - (setq mailcap-mime-data - (ensc/mailcap-mime-data-filter 'ensc/no-pdf-doc-view-filter)))) - -;; TODO: and this seems to make xdg-open work, but breaks python interpreter -;; (setq process-connection-type nil) +;; pdftools ftw, docview is shit that needs to be left in the past +(require 'pdf-tools) +(pdf-loader-install) ;; highlight the parens (setq show-paren-delay 0)