Giter VIP home page Giter VIP logo

Comments (6)

eschulte avatar eschulte commented on May 13, 2024

The starter kit pre-dates integration of ELPA into core Emacs. Also, while the starter kit does provide some ELPA setup, I do agree the option for a package would be nice. I don't have the time currently to write the Makefile rules to build a package, however I'm happy to merge such a change. The packaging section of the Makefile in my emacs-web-server [1] should provide a good template for such an addition. I should be able to get to this at some point next month if there's no pull requests before then.

Thanks for the suggestion,
Eric

[1] https://github.com/eschulte/emacs-web-server/blob/master/Makefile#L29

from emacs24-starter-kit.

iainbeeston avatar iainbeeston commented on May 13, 2024

Thanks, I'll take a look

from emacs24-starter-kit.

iainbeeston avatar iainbeeston commented on May 13, 2024

Unfortunately I'm not going to be able to do this any time soon, sorry about that :-/=

from emacs24-starter-kit.

eschulte avatar eschulte commented on May 13, 2024

I just added this to the Makefile in e59a2fb, and submitted a pull request to MELPA melpa/melpa#2227.

from emacs24-starter-kit.

iainbeeston avatar iainbeeston commented on May 13, 2024

Great - I look forward to trying it out!

from emacs24-starter-kit.

stormwatch avatar stormwatch commented on May 13, 2024

So how should I load the starter kit once I install through MELPA instead of git?

For now I've written my own init.el and modified the hook function as follows:

;; load the starter kit from the `after-init-hook' so all packages are loaded
(add-hook 'after-init-hook
 `(lambda ()
    ;; remember this directory
    (setq starter-kit-dir
          (file-name-as-directory
            (package-desc-dir (cadr (assq 'literate-starter-kit package-alist)))))
    ;; only load org-mode later if we didn't load it just now
    ,(unless (and (getenv "ORG_HOME")
                  (file-directory-p (expand-file-name "lisp"
                                                      (getenv "ORG_HOME"))))
       '(require 'org))
    ;; load up the starter kit
    (org-babel-load-file (expand-file-name "starter-kit.org" starter-kit-dir))))

;;; init.el ends here

It works but I wonder if it is necessary to revert package-user-dir to its original value.

from emacs24-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.