Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to install this package? #3

Open
kkrusher opened this issue Feb 25, 2023 · 3 comments
Open

How to install this package? #3

kkrusher opened this issue Feb 25, 2023 · 3 comments

Comments

@kkrusher
Copy link

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?

@dmitrym0
Copy link
Owner

dmitrym0 commented Feb 26, 2023

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 ("*")))

@petermao
Copy link

@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)

@pobermei
Copy link

pobermei commented Mar 6, 2023

@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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants