Emacs initialization as org file: how can I get the right version of org-mode?

后端 未结 5 1236
失恋的感觉
失恋的感觉 2021-02-14 06:39

I\'ve been experimenting with the org-babel tutorial that describes how to put the bulk of your emacs init.el file into an org file. However, I would like to use org-mode 8 (mai

5条回答
  •  独厮守ぢ
    2021-02-14 07:20

    I configure package repositories in an org-based configuration file as well, so, to adjust the load path I have this in my init.el prior to loading org:

    ;; remove org-mode shipped with emacs from the load-path
    (setq custom-org-path (car (file-expand-wildcards
                                (concat my-init-dir "elpa/org-plus-contrib-20*")))) 
    (when custom-org-path 
      (setq load-path (remove-if (lambda (x) (string-match-p "org$" x)) load-path))
    
      (add-to-list 'load-path custom-org-path))
    

提交回复
热议问题