How To

The Setup: Org Mode with Emacs

This post is about the setup that I did to use Org Mode with Emacs(funny part, I wrote Vim in this line then erased it and re wrote as Emacs). You can use it too.

Download the org tar.gz from here.

 

If you do not have Emacs installed. Install it using


sudo apt-get install emacs

 

Make a .emacs file in your home directory (or edit the one your have if
it is already there). Put into it the following lines (adapt to your
username):


(add-hook 'org-mode-hook 'font-lock-mode)
(setq load-path (append '("/home/tapasweni/emacs"
"/home/tapasweni/emacs/org.emacs")
load-path))
;;; Org mode
(require 'org-install)
(require 'org-view-link)
(add-to-list 'auto-mode-alist '("\\.org$" . org-mode))
(define-key global-map "\C-cl" 'org-store-link)
(define-key global-map "\C-ca" 'org-agenda)
(add-hook 'org-mode-hook
'(lambda ()
(local-set-key [C-up] 'backward-paragraph)
(local-set-key [C-down] 'forward-paragraph)))
(add-hook 'org-mode-hook
'(lambda ()
(local-set-key [down-mouse-3] 'org-view-mouse)
(local-set-key "\C-ca" 'org-view-mouse)))
(setq font-lock-maximum-size 10000000)

 

Then make a directory called emacs and uncompress the attached tar.gz in
it. You should end up with a directory emacs/org.emacs.

Then when you go to an org mode file, type escape x org-mode. Then type
control c a (not control c control a) on any link. You will get a new
window with the relevant positions in the file.

 

The extension of your org file will be .org.

Thanks to Julia for helping me with this. 🙂

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s