#+TITLE: org config for front #+AUTHOR: screwlisp #+PROPERTY: header-args:elisp :tangle ~/.emacs.d/my-org-config-front.el This is the copy of ==~/.emacs.d/config.org== to generate ==~/.emacs.d/my-org-config-front.el== to put at the top of ==~/.emacs.d/init.el== This is a good one to load packages before custom variables are set. Basically ==C-c C-v t== here to generate the file. *** Call it #+CALL: config.org:define-and-screwtape-block() :Eval yes ** Blocks *** First block The block can be opened by putting the cursor somewhere on the block and pressing C-' #+name: first-block #+begin_src elisp (print "first block!") #+end_src Textual commentary. *** Your block name #+name: foo-to-bar #+begin_src elisp (setq foo 'bar) #+end_src Yourtext *** foo value printer #+name: foo-printer #+begin_src elisp (format "foo is %s" foo) #+end_src Yourtext *** enable org blocks :informative: #+name: enable-org-blocks #+begin_src elisp :results none (org-babel-do-load-languages 'org-babel-load-languages '((org . t))) #+end_src A better / more permanent way to do this is: ==M-x customize-variable== ==org-babel-load-languages== then INS and use the values menu to find org (default is to enable) Accept-and-save (rather than just accept) adds this to your config. *** Enable calc blocks #+name: enable-calc-blocks #+begin_src elisp :Results none (org-babel-do-load-languages 'org-babel-load-languages '((calc . t))) #+end_src Calc = org's spreadsheets. see [[enable org blocks]] for a better way. It would be cool to do some calc, but I guess this is just an org file. *** adding files to load path #+name: add-to-load-path #+begin_src elisp (add-to-list 'load-path "~/.emacs.d/xterm-color") (add-to-list 'load-path "~/.emacs.d/rmoo") #+end_src Yourtext *** rmoo #+name: setup-rmoo #+begin_src elisp (require 'rmoo-autoload) (require 'moocode-mode) ;;(require 'coldc-mode) (global-set-key (kbd "C-c C-r") 'rmoo) (add-to-list 'auto-mode-alist '("\\.moo$" . moocode-mode)) (add-hook 'rmoo-interactive-mode-hooks (lambda () (goto-address-mode t))) ;; ... clickable links #+end_src Yourtext .. *** my-slime #+name: my-slime #+begin_src elisp (add-to-list 'load-path "~/.emacs.d/slime/") (require 'slime-autoloads) #+end_src #+RESULTS: my-name : slime-autoloads