Emacs


  • Using org-mode in outline-mode

    I have written about using org-mode in gams-mode in an earlier post. Gams-mode lets you structure your gams file using headings and subheadings. These headings can be (partially) collapsed. The structure of your file could look like this:

    image

    You can now cycle through the structure using Shift-Tab. Tab opens a section:

    image

    This is a great help in complex files.

    Gams-mode has another great outline feature for the listing file. Instead of putting a normal comment with a “*” in front, one writes a display statement that starts with a “@” (see the code above). We now see a nice heading … Read the rest “Using org-mode in outline-mode”

  • Managing papers with Org-Mode and Reftex

    Writing papers means reading lots of papers, and I often lose track of all the papers I am reading: Where did I file a certain paper? Which paper did I start reading? Which paper might be interesting?

    A reading list would be nice, but such a list should be easy to handle. I have all my papers catalogued in JabRef and use AucTex and RefTex for writing and Org-Mode for my tasks.The solution should therefore combine the strength of all three. I found a nice post on how to this (http://tincman.wordpress.com/2011/01/04/research-paper-management-with-emacs-org-mode-and-reftex/) and adopted it to my needs.

    Here … Read the rest “Managing papers with Org-Mode and Reftex”

  • How to generate nice nomenclatures in LaTeX

    If you have to write up your model results, often you have to write down the model documentation. My colleague at work pointed me to a great package in LaTeX that can make your life easier with respect to the nomenclature used. It allows you to produce a glossary with all your variables, parameters and acronyms without much extra work. The package is called “nomencl” and here is an example of a pdf generated with LaTeX:

    image

    As you can see, I have acronyms, parameters and variables as well as the reference to where they are used for the first time … Read the rest “How to generate nice nomenclatures in LaTeX”

  • Switching between Emacs color themes

    Emacs has lots of different color-themes. Depending on the light and my own mood, I would like to change between my two favorite themes, the “standard” light theme and a dark one.
    This is the color-theme I use for my LaTeX files (“sitaramv-nt”):
    But for my model files, I like the dark color-theme (“dark-laptop”), but sometimes the light one.
    I searched the internet and found some code that allows me to switch easily between the themes using F11:

    Read the rest “Switching between Emacs color themes”

  • Integrating Emacs in your file explorer

    Sometimes I have files that I want to open with Emacs, but I haven’t set the program to open to Emacs (for example, a log-file or .emacs). I found a nice hack for Windows machines in the internet (http://www.johndcook.com/emacs_windows.html#explorer).
    Just create a file emacs.reg with the following text and adjust the path to your settings.
    Windows Registry Editor Version 5.00
    [HKEY_CLASSES_ROOT\*\Shell\Open In Emacs\Command]
    @
    @=”\”C:\\bin\\Emacs-23.1\\bin\\emacsclientw.exe\” -a \”C:\\bin\\Emacs-23.1\\bin\\runemacs.exe\” \”%1\””
    Before you double click on this file, save your registry (you never know…). After double clicking you will have a extra option in your right-click menu in your explorer, which
    Read the rest “Integrating Emacs in your file explorer”


Categories