Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds better personal configurations to Prelude #1389

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Nov 26, 2022

  1. Adds better personal configurations to Prelude

    With this change `prelude-personal-dir` now is decoupled from `prelude-dir` which allows one to manage them independently.
    
    One should be able to install Prelude with the following command setting different paths for prelude itself and for the user
    personal configuration.
    ```
    if [ ! -d "/some/dir/.emacs.prelude" ]; then
    	export PRELUDE_INSTALL_DIR="/my_home_dir/.emacs.prelude" &&
    		export PRELUDE_PERSONAL_DIR="/my_personal_dotfiles/prelude" &&
    		curl -L https://github.com/bbatsov/prelude/raw/master/utils/installer.sh | sh
    fi
    ```
    Alternatively, just `git clone ...` should also work for the installation step!
    
    After that, Prelude will start loading the configuration from the new path, for example, with https://github.com/plexus/chemacs2
    ```
    (
        ("prelude" . ((user-emacs-directory . "/my_home_dir/.emacs.prelude")
                         (custom-file . "/my_personal_dotfiles/prelude/custom.el")
                         (env . (("PRELUDE_PERSONAL_DIR" . "/my_personal_dotfiles/prelude"))))))
    ```
    
    In this way `prelude-personal-dir` can live and be managed by the user own dotfiles without interfering with Prelude itself.
    
    This was stolen from Crafted Emacs (https://github.com/SystemCrafters/crafted-emacs) which may or may not be legal :)
    jvillasante committed Nov 26, 2022
    Configuration menu
    Copy the full SHA
    74e1e98 View commit details
    Browse the repository at this point in the history