pkg update and first config fix
org-brain not working, add org-roam
This commit is contained in:
@@ -7,8 +7,8 @@
|
||||
;; URL: http://github.com/vedang/pdf-tools/
|
||||
;; Keywords: files, multimedia
|
||||
;; Package: pdf-tools
|
||||
;; Version: 1.0.0snapshot
|
||||
;; Package-Requires: ((emacs "24.3") (nadvice "0.3") (tablist "1.0") (let-alist "1.0.4"))
|
||||
;; Version: 1.0.0
|
||||
;; Package-Requires: ((emacs "26.3") (tablist "1.0") (let-alist "1.0.4"))
|
||||
|
||||
;; This program is free software; you can redistribute it and/or modify
|
||||
;; it under the terms of the GNU General Public License as published by
|
||||
@@ -239,6 +239,7 @@ Returns a appropriate directory or nil. See also
|
||||
(list default-directory
|
||||
(expand-file-name "build/server" pdf-tools-directory)
|
||||
(expand-file-name "server")
|
||||
(expand-file-name "server" pdf-tools-directory)
|
||||
(expand-file-name "../server" pdf-tools-directory))))
|
||||
|
||||
(defun pdf-tools-msys2-directory (&optional noninteractive-p)
|
||||
@@ -432,11 +433,15 @@ See `pdf-view-mode' and `pdf-tools-enabled-modes'."
|
||||
(pdf-virtual-global-minor-mode 1))
|
||||
(add-hook 'pdf-view-mode-hook #'pdf-tools-enable-minor-modes)
|
||||
(dolist (buf (buffer-list))
|
||||
(with-current-buffer buf
|
||||
(when (and (not (derived-mode-p 'pdf-view-mode))
|
||||
(pdf-tools-pdf-buffer-p)
|
||||
(buffer-file-name))
|
||||
(pdf-view-mode)))))
|
||||
;; This when check should not be necessary, but somehow dead
|
||||
;; buffers are showing up here. See
|
||||
;; https://github.com/vedang/pdf-tools/pull/93
|
||||
(when (buffer-live-p buf)
|
||||
(with-current-buffer buf
|
||||
(when (and (not (derived-mode-p 'pdf-view-mode))
|
||||
(pdf-tools-pdf-buffer-p)
|
||||
(buffer-file-name))
|
||||
(pdf-view-mode))))))
|
||||
|
||||
(defun pdf-tools-uninstall ()
|
||||
"Uninstall PDF-Tools in all current and future PDF buffers."
|
||||
|
||||
Reference in New Issue
Block a user