Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setup for emacs org-mode outside .emacs file

Tags:

emacs

org-mode

I would like to set up a project to be published as HTML using org-mode.

I don't want to litter my .emacs with project definitions, and I was wondering where I could put the (setq org-publish-project-alist) variable.

Can I somehow put it in the same dir?

like image 752
Dervin Thunk Avatar asked Nov 22 '25 05:11

Dervin Thunk


2 Answers

Ryan McGeary describes what I think is a good way to organize emacs startup files.

Update:
The domain emacsblog.org expired :(
You can look at the cached copy of the originally linked page.

like image 87
Dave Bacher Avatar answered Nov 24 '25 01:11

Dave Bacher


You could just add a new file in your .emacs.d (or whereever) and do a load-file in your .emacs file.

-- EDIT --

For example, you could have the following in your .emacs

(load (expand-file-name "~/.emacs.d/lisp/personal-org-mode-stuff.el"))

and then put all of your customization stuff in ~/.emacs.d/lisp/personal-org-mode-stuff.el and it will load that file and import all of your .emacs

Another poster also posted a link to a description of how to add your lisp files to the load path and require them.

like image 20
Joshua Smith Avatar answered Nov 24 '25 00:11

Joshua Smith



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!