dmitrym0 / org-noter-plus

Emacs document annotator, using Org-mode

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to install this package?

kkrusher opened this issue · comments

Hello, I am a beginner of emacs. To install a package in melpa is easy. But how can I install this package? Can you give me a config in your init.el?

commented

Hey kkrusher,

The easiest way is by using use-package and straight together.

You can install use-package from MELPA; straight requires this in your init.el:

(defvar bootstrap-version)
(let ((bootstrap-file
       (expand-file-name "straight/repos/straight.el/bootstrap.el" user-emacs-directory))
      (bootstrap-version 6))
  (unless (file-exists-p bootstrap-file)
    (with-current-buffer
        (url-retrieve-synchronously
         "https://raw.githubusercontent.com/radian-software/straight.el/develop/install.el"
         'silent 'inhibit-cookies)
      (goto-char (point-max))
      (eval-print-last-sexp)))
  (load bootstrap-file nil 'nomessage))

then you can load org-noter:

  (use-package org-noter
    :straight
    (:repo "dmitrym0/org-noter-plus"
      :host github
      :type git
      :files ("*")))

@dmitry if you merge my master, then all it takes is a git clone of this repo to <path-to-org-noter> and in the init.el:

(add-to-list 'load-path "<path-to-org-noter>")
(require 'org-noter)

@dmitrym0 To make this properly work, I have to modify your straight-use-package block as follows:

  (use-package org-noter
    :straight
    (:repo "dmitrym0/org-noter-plus"
      :host github
      :type git
      :files ("*.el" "modules/*.el" "other/*.el"))  ; include modules and auxiliaries
 :config
  ;; Explictly load required modules
  (require 'org-noter-pdf)
  (require 'org-noter-dynamic-block)
  )

Otherwise, if I open an org-noter document, there will be an error message that says "This document handler is not supported." and the pdf-view frame will not be shown.