Skip to main content

Emacs org-mode and productivity

October 31, 2010 by santosh

ShareThis

Productivity with Emacs, org-mode and remember

For productivity and time keeping I am now using orgmode in Emacs. I have customized heavily Emacs and org-mode. I went through many web pages and tutorials and finally I have come to an agreement with myself that this setup is enough to make myself efficient and keep myself from forgetting things. I will show you what I did.

Version control

The first thing I did was setup a version control system for my notes and org files. This helps me in keeping everything synchronized across systems I use. I was using dropbox previously but in my current company, access to dropbox is blocked. I use a free git repository server for hosting my files.

org-mode and remember

The next thing I did was to customize my .emacs file for tasks, notes, fast note taking with remember(New users with org-mode version 6.36 and later should use capture) etc. My org-mode specific configurations are below.

;;; remember and org-mode
(org-remember-insinuate)
(setq org-default-notes-file "~/notes/org/notes")
(setq remember-annotation-functions '(org-remember-annotation))
(setq remember-handler-functions '(org-remember-handler))
(add-hook 'remember-mode-hook 'org-remember-apply-template)
(define-key global-map "\C-cr" 'org-remember)

(setq org-agenda-custom-commands
      '(("w" "Things to be done"
         ((org-agenda-list nil nil 1)
          (tags "WORK")
          (tags "HOME")
          (tags-todo "WAITING")
          ))))

;; templates for remember
(setq org-remember-templates
      '(
        ("Todo" ?t "* TODO %? %g\n  %i" "~/notes/org/TODO" "Tasks")
        ("TO Learn" ?l "* TODO %?\n %i" "~/notes/org/TODO" "To Learn")
        ("Random" ?r "* %u %?\n  %i" "~/notes/org/random.org")
        ("Notes" ?n "* %u %^{Title} %^g\n %i%?\n %a" "~/notes/org/notes"
         "Learning Notes")
        ("Misc" ?m "* %T %^{Title}\n  %i%?\n  %a" "~/notes/org/notes" "Unfiled")
        ("Work" ?w "* %^{Title}\n  %i%?\n  %a" "~/work/notes/jots.org")))

Other emacs customisation

I used to use Emacs not XEmacs, so I had a habit of closing the window when I intended to close the buffer. So I changed the the quit keyboard command to C-x C-\ and C-x C-c to kill-buffer. That part of the file are below.

;; prompt when quitting Emacs in GUI
(defun ask-before-closing ()
  "Ask whether or not to close, and then close if y was pressed"
  (interactive)
  (if (y-or-n-p (format "Are you sure you want to exit Emacs? "))
      (if (< emacs-major-version 22)
          (save-buffers-kill-terminal)
        (save-buffers-kill-emacs))
    (message "Canceled exit")))

(when window-system
  (global-set-key (kbd "C-x C-\\") 'ask-before-closing)
  (global-set-key (kbd "C-x C-c") 'kill-buffer))

OK how do I use it?

How you want to use the org-mode and remember package is up to you. I will just give you some ideas about how to start using it, not conceptually, just keyboard shortcuts, invocations etc.

The following key bindings are for org and remember mode, some are custom and some are default in emacs-23. Please note the key-bindings specified are Emacs convention, ie., C is control, and M is meta/Alt/escape.

Key bindings Action
C-a a a org-mode agenda
C-a a t org-mode agenda tabular view
C-M-r Remember mode
Shift-arrow cycle through todo tag list
C-c C-c file note (in remember mode)
C-c C-k discard note in remember mode

The list of keybindings are given here.

I have set up some remember templates too, so that filing notes can go into the appropriate file in desired format. Explanation of remember mode with org-mode can be found here.

Other shortcuts and uses

Since I use Emacs extensively for many things, it is set to run at start up in my gnome preferences. Also Emacs always starts up in server mode, accomplished with the help of (server-start) in the .emacs file.

I use xbindkeys to bind Super+esc to

    emacsclient -e '(remember-other-frame)'

so even when my Emacs window is not focused, I can quickly enter notes in remember mode with super+esc.

I also use cscope extensively for browsing through the kernel source code. I prefer not to close files when searching for another definition. To avoid Emacs opening separately for each file, and cscope waiting for the editor to be closed, I use emacsclient as my CSCOPE_EDITOR. I wrote a small script like the below.

    #!/bin/bash
    emacsclient -a vi -n $*

When Emacs server is not running, I just use Vi instead of wasting my
time starting the server for small look-ups.

A very nice tutorial on org-mode is http://doc.norang.ca/org-mode.html.

Comments

hi

May 17, 2012 by Anonymous penguin (not verified), 3 days 17 hours ago
Comment: 2037

Last year hundreds of families associated MAC makeupwith our homeopathic clinic opted to use Influenzinum instead of the H1N1 vaccine orCheap MAC Makeup the regularMAC Cosmetics Wholesale flu vaccine to protect them from falling ill with the virus.Discount MAC Cosmetics This was very successful.Bobbi Brown Brushes Families reported their best winter everChanel Cosmetics in terms of infectious disease, in spite of media scares. For some this was new,Bobbi Brown Brushes 18pcs others have utilized this safe, effective method of disease prevention over the 8+Chanel Cosmetics Bags Set years we have been in our NW Calgary location. We also see numerous families that use homeoprophylaxis for disease prevention in their children and for international travel.Chanel Cosmetics Eyelashes This has also been highly successful over the years.Cheap Bobbi Brown Bushes 9pcs In addition to it being effective, homeoprophylaxis offers no side effects, no toxicity, no trauma. Delivered orally on lactose granules, Discount Bobbi Brown Brushes 12pcsit's something that kids look forward to and adults rest easy giving. It's inexpensive and therefore an excellent option for individual use as well as for the masses, as a large-scale trial in CubaBobbi Brown Brushers 9pcs has shown us.

It might seem like an extravagance but thereOPI Nail Polish are definite benefits to having a garden as an interior landscaping OPI Nail Polish Wholesalefeature in a place of work. True, it might not be suitable in some places, Cheap OPI Nail Polishwhere space is at a premium, but for those companies with sufficient space, there are definite reasons to consider the investment.OPI Nail Polish SaleThere are an almost-infinite number of options when it comes to designing a garden area,OPI Summer Splash especially when space is of little concern.OPI BrightPair The magnificent garden examples in homes and country estates are,OPI Colorcopiaof course, of little use in an office block but talented landscape designersOPI DS can make the most of even small unused areas.Of course, OPI Franceaesthetics are never the core motive behind any kind of commercial interior or exterior landscape design. OPI SoftShadesEven corporate flowers, either in a bouquet or in a vase in a boardroom, OPI Spainsays something about the company.OPI SoftShades(NLH33) [NLH33] This is always taken into account, but still the opportunity to create a highly impressive green area in the form of a garden is there.opi-dsds033 Here are just four reasons why.Research has shown that working in a greener office environment has a host of positive effects, including creativeness, greater levels of concentration and a general positive feeling.OPI Brights(NLB31) [NLB31] What this means is that productivity increases and progress is made even on the most difficult strategic business plans.OPI Russia(NLR59) [NLR59]Taking a meeting in the company garden, OPI India(NLI50) [NLI50]however, enhances whatever effect the array of office plants can have.OPI SoftShades(NLR41) [NLR41] After all, in the garden the meeting attendees are immersed in nature, surrounded by refreshing greenery and even inspired by cool water flowing over pebbles. The result is better ideas, higher level of cooperation and an overall more enjoyable,OPI Brights(NLB31) [NLB31] as well as productive, business meeting.

We hear so many people complainingnike free sale of being stressed out that we rarely take the time to consider what stress really is.Nike Free 3.0 Sale Like other terms, stress can be explained several ways. Nike Free 3.0 Women's Running ShoeFor the purpose of this article, Nike Free 5.0 Mens Cheapthough, we'll define stress as an external bodily response to internal, Nike Free 5.0 Womens Salefears and anxieties.Trying to keep up at work, cheap nike freebecoming anxious about the finances and worrying about our family members are all primeNike Free 7.0 Mens Shoes Sale examples of the extreme stress that is taking a heavy physical Nike Free 7.0 Womens Saletoll on the population of the world.Of course,Nike Free Dynamo PS Shoes not all stress is bad. Nike Free Everyday SaleIf you were to look up and notice a semi-truck barreling down toward you, dicount nike free on salethen your body and mind would work together to use that stressor to produce Cheap Nike Free Hybrid Bootsa healthy fear that motivates you to get out of the way.Nike Free Hyper Trainer Womens Unfortunately, though, the majority of stress causers in our world are not nearly so life and death as this example.None of us should approach every incident in our lives with fear,Nike Free Prototype Golf shoes for sale trepidation and worry. And when we do, we are sending some seriously dangerous mixed signals to our bodies - which will ultimately lead to serious health problems.Nike Free Run sale mensWhen you live in a state of non-stop stress, your body pays a very heavy toll. You see, the cells of your body are programmed to react to stress by closing their membranes and getting into a ready-for-the-worst state of being.nike free shoesAs amazing as our bodies are, at a cellular level,Nike Free Run Womens Cheap they cannot hold up to being constantly primed for danger.Nike Free TR Fit Womens Cheap Over time, chronically stressed cells will develop an excess of stress molecule receptors.Nike Free Trainer Cheap And when they do, they do not operate optimally, and can actually become addicted to stress.These are the kinds of stress facts that your physician may not even be aware of, Nike Free 2 Mens Salelet alone passing on to you. When your cellular system becomes effectually closed off to anything except for stress,NIKE FREE BLOGit's all too easy for the immune system to become worn down and ineffective.

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Premium Drupal Themes by Adaptivethemes