![aquamacs load-theme aquamacs load-theme](https://i0.wp.com/www.vinethemes.com/wp-content/uploads/2022/03/Social-Media-Expert.jpg)
If there are org-files in ~/.emacs.d/personal then load org-mode and use org-babel, otherwise just load all the elisp files. (mapc 'org-babel-load-file (directory-files prelude-personal-dir 't "^.*el$") )) (message "Loading personal configuration files in %s." prelude-personal-dir) (mapc 'org-babel-load-file (directory-files prelude-personal-dir 't "^.*org$")))) (load-file (expand-file-name "custom.el" prelude-personal-dir)) (message "Loading personal configuration org-files in %s." prelude-personal-dir) ( if (directory-files prelude-personal-dir 't "^.*org$") ( when (file-exists-p prelude-personal-dir) load the personal settings (this includes ` custom-file ') (setq custom-file (expand-file-name "custom.el" prelude-personal-dir)) The following change to init.el makes it possible to use org-babel: config changes made through the customize UI will be store here Using org-files for configurations helps to document, and add references to stuff to try out later. The only thing I missed was the possibility to use org-files for my private configuration, something I like in the Emacs Starter Kit. Private settings are stored under ~/.emacs.d/personal, so it’s easy to keep things clean. Prelude is a very nice Emacs 24 configuration. And second, copy/paste does not work if I start Emacs like that. In this way I can use Emacs.app for my regular editing, use Aquamacs for testing (and writing blog-posts), and Emacs2.app for irc.Īnd in case you’re wondering, why don’t I just run the same version of Emacs from the command-line? Two reasons: Then all the instances have the same icon, which makes switching confusing. ( when (string= emacspath "Aquamacs.app") (setq emacspath (nth 2 (split-string (car command-line-args) "/"))) The relevant part of my init.d: get OSX application name If you want to run shell scripts using Emacs, for that see Getting Command Line arguments on ErgoEmacs. On OSX you can get the application name using: (setq emacspath (nth 2 (split-string (car command-line-args) "/")))īy the way, this has nothing to do with argv command line arguments. The variable command-line-args contains the filename of your current Emacs.
#AQUAMACS LOAD THEME HOW TO#
How to differentiate between all your different versions of Emacs? Unless you build your own Emacs with custom settings (which I have no ide how to do), all your Emacsen will use ~/.emacs.d/init.d. Solution: run more then one version of Emacs (something I heard John Wiegley does as well, that’s where I got the idea). I also like to use ERC, which would be a pain to restart all the time. Being just a beginning Emacs user, I have to restart Emacs regularly because I messed up my configuration.