Skip to content
Andy Stewart edited this page Jul 12, 2020 · 1 revision

If you use Chemacs, a sample init.el is provided as follows:

;; An example of init.el

(defun add-subdirs-to-load-path (dir)
  "Recursive add directories to `load-path'."
  (let ((default-directory (file-name-as-directory dir)))
    (add-to-list 'load-path dir)
    (normal-top-level-add-subdirs-to-load-path)))
(add-subdirs-to-load-path "~/.emacs.d/")

(require 'eaf)

During EAF installation, you only need to modify the parameter value when calling function add-subdirs-to-load-path, change it into your full path to the EAF installation directory. The sample gives a situation when you install EAF at ~/.emacs.d/.

After EAF installation, let's assume your EAF installation directory is ~/eaf, you only have Emacs configurations at ~/.emacs.d and EAF installed on your computer, and you have installed Chemacs, then the .emacs-profiles.el should look like this:

(("default" . ((user-emacs-directory . "~/.emacs.d")))
 ("EAF" . ((user-emacs-directory . "~/eaf"))))

When you want to use EAF by chemacs, you can excute emacs --with-profile EAF in the terminal.

Clone this wiki locally
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy