unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* How to develop a local fork of a package?
@ 2022-09-03 11:12 Alessandro Bertulli
  2022-09-03 13:26 ` Emanuel Berg
  0 siblings, 1 reply; 7+ messages in thread
From: Alessandro Bertulli @ 2022-09-03 11:12 UTC (permalink / raw)
  To: gnu-emacs-help

Hi all!

Pretty much the title.

I want to experiment a bit in modifying org-ref. I have installed it
using the package manager. Then I cloned the repository on my local
machine (in a directory "~/.emacs.d/git_packages/org-ref/"). Then I had
to instruct Emacs to use the local version, and not the
"~/.emacs.d/elpa/" one.

How can I do that? For now, my Google-fu lead to this:

(add-to-list 'load-path (expand-file-name "git_packages/org-ref/"))
(delete "/home/alessandro/.emacs.d/elpa/org-ref-20220830.1210" load-path)
(package-initialize)

But then, no matter which one of these I use

(require 'org-ref)
(load "~/.emacs.d/git_packages/org-ref/org-ref")
(use-package org-ref
  :ensure nil
  :load-path "~/.emacs.d/git_packages/org-ref/org-ref.el")

I always get errors.

- What am I doing wrong?
- Or maybe, this process is completely non idiomatic, and there is a
  better way?

Alessandro



^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2022-09-05 11:40 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-09-03 11:12 How to develop a local fork of a package? Alessandro Bertulli
2022-09-03 13:26 ` Emanuel Berg
2022-09-04  2:43   ` Akib Azmain Turja
2022-09-04 22:20     ` Alessandro Bertulli
2022-09-05 11:38       ` Akib Azmain Turja
     [not found]     ` <443fb46d2c9b2384869ade5fd0764611c0e0fe66bc5b546d7118a24832e90579@mu.id>
2022-09-04 22:40       ` Alessandro Bertulli
2022-09-05 11:40         ` Akib Azmain Turja

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).