I want to install org-mode from Github repository and override that from ELPA.
My emacs configuration runs from an org-file, these are the lines relevant to package management and org-mode load path:
#+BEGIN_SRC emacs-lisp (require 'package) (package-initialize) (setq load-path (cons "~/.emacs.d/org-mode/lisp/" load-path)) (setq load-path (cons "~/.emacs.d/org-mode/contrib/lisp/" load-path)) #+END_SRC
I installed org-mode version 9.0.4 from Github repo with these lines of bash code:
cd ~/.emacs.d/ git clone git://orgmode.org/org-mode.git make autoloads
I deleted the
org mode from ELPA folder inside
When I fire up emacs I get this error message:
Warning (initialization): An error occurred while loading `~/.emacs.d/init.el': Symbol's function definition is void: org-define-error To ensure normal operation, you should investigate and remove the cause of the error in your initialization file. Start Emacs with the `--debug-init' option to view a complete error backtrace.
What am I missing here? Your help would be much appreciated. Any suggestions to improve my Emacs setup file are also welcome.
whey I hit
M-x org-version it takes the version info from another location which is
/usr/share/emacs/24.5/lisp/org/. What I want to achieve that emacs run org-mode from the new cloned location.
- Emacs-version: GNU Emacs 24.5.1 (x86_64-pc-linux-gnu, GTK+ Version 3.18.9) of 2016-04-17 on lgw01-04, modified by Debian
- Org-version: Org-mode version 8.2.10 (release_8.2.10 @ /usr/share/emacs/24.5/lisp/org/)