The question of how to do so comes up quite often and is answered quite well here how to accomplish it.
Tag: Emacs
org-mode document transport ala a zip file
In this humble post the Kitchin Research Group demonstrates how to package up all external references for an org-mode document for transportation in a zip file solving the problem that many org-mode users face of how to simply and easily share the entirety of an org-mode document with others without exporting to PDF.
Simple OSX key swap and trackpad ease
This article describes a tool for remapping your Mac laptop keyboard. Initially I took the simpler route and swapped caps lock with control and command with option in the system preferences menu. That was OK until I remembered that I had wanted to have a right control key on the laptop. Oops.
The solution was simple, installing KeyRemap4Macbook and checking a single setting, Command_R to Control_L was all it took. Thanks Bozhidar!
Now you may have been daunted by the configuration menu but take it as an opportunity to learn about some valuable ways to configure things. What was delightful for me to learn about was its Multi-touch extension feature (sorry no direct link) which is based on ThumbSense. Very cool and very nice looking if you want to enjoy a trackpad without having to contort your hands just to get a mouse click (if you don’t have a Macbook of course).
Indenting new curly bracket blocks with smartparens for R
Emacs speaks statistics handle indentation for curly bracket blocks quite well. My preference was to have, after inserting matching opening and closing curly brackets, a newline with the cursor indented one block in. This post in particular describes the solution; it worked fine as of today.
Addendum: 2014-04-17
Here is the code snippet from the above link:
(sp-local-pair 'c++-mode "{" nil :post-handlers '((my-create-newline-and-enter-sexp "RET")))
(defun my-create-newline-and-enter-sexp (&rest _ignored)
"Open a new brace or bracket expression, with relevant newlines and indent. "
(newline)
(indent-according-to-mode)
(forward-line -1)
(indent-according-to-mode))
Addendum: 2014-05-06
Here is a link to the documentation on using pre and post pair handlers.
Org Manual
The org-mode manual lives here.
org-mode examples
This post is a wonderful cookbook from which to pull.
Emacs elisp dev must read
As usual Nic outdoes us all in terms of serving the community and the greater good. How to write real code in emacs lisp with Emacs.
This must be read.
Build the configuration you need
The Emacs configuration for normal operations on my system has loads of useful and powerful packages loaded. Sometimes they interfere with the normal operation of org-html-export-to-*, though. The simplest way to address those issues is to generate two confirmation files: one for full-blown Emacs use and another just for doing exports. With literate programming in org-mode it is totally simple to do. It looks like this:
<<cask-block>> <<diagramming-decision>> <<modes-application-org-mode-decision>>
OcCLIPS
It would be nice to have a lovingly supported CLIPS mode along with org-mode literate programming (babel) and a clear legal pedigree.
Ease of use in Cask 0.6
Cask is the best way to manage your Emacs packages and MELPA is the best place to find them. Because not all packages are set up to be run specifically with the packaging in mind, a lot of feature are still loaded manually (additionally, I am to be blamed for setting them up incorrectly and needing to do something manually in the first place). The convenience with the approach below is never having to update directory paths with each new release of your favorite package on MELPA that may so easily be installed with a cask update. Cask is still under active development, though, so this code may break eventually (my previous approach for example broke as of the 0.6 release).