Thanks for your advice. After your code inspiration. I got an idea. After test, it works fine. I try to load `use-package` and `(use-package org :pin manaul ..)` ahead of `(package-initialize)`. Half of the problem is solved. The another half of the problem is that Emacs still will load built-in org-mode in lisp/org/. I think I can't solve this problem essentially. Because I can't load before Emacs built-in library. Oops. [stardiviner] GPG key ID: 47C32433 IRC(freeenode): stardiviner Twitter: @numbchild Key fingerprint = 9BAA 92BC CDDD B9EF 3B36 CB99 B8C4 B8E5 47C3 2433 Blog: http://stardiviner.github.io/ On Tue, Jan 23, 2018 at 8:26 PM, Kaushal Modi wrote: > On Mon, Jan 22, 2018, 4:41 AM numbchild@gmail.com > wrote: > >> >> Does anybody have a perfect solution to use latest source code Org in >> Emacs way? >> > > I've been using a solution that's working perfectly for me. Unfortunately, > the only way is to: > > 1. Uninstall all the Org installations that you don't want to use > (example: delete the Org Elpa installed version if you plan to use the git > cloned version). > 2. Advice a package.el function that never auto-installs Org as > dependency. > 3. Another advice to never update Org using the package manager (as you > would be managing the updates yourself using git). > > Basically the update/dependency-check should not install Org. > > A while back, I did a detailed write-up on this setup: > https://scripter.co/building-org-development-version/. With that setup, > and modi/org-version-select set to 'dev, I don't have to worry about other > Org versions getting auto-installed. > >> -- > > Kaushal Modi >