Skip to content
Tags

Emacs Tips

March 23, 2010

Org-Mode

Must mention emacs org-mode.

I already mentioned the ability to blog directly from emacs with weblogger.el, now I am
blogging from emacs http://orgmode.org/

Org-mode is an outliner, agenda, to-do list which works in plain text from a limited
markup. It also has a great interactive table editor.

Html, pdf and latex may be generated from the org document. So, after creating a document
with org-mode it may be exported to html and then posted directly to wordpress or blogger
with weblogger.el

A few things are useful to post to wordpress.com, blogger.com will be slightly different.

  • I switch off css output on wordpress, the html still has class names, divs and spans but
    the css defs are gone; wordpress.com wants paid for providing custom css.

  • customize org so that it doesn’t generate headers and footers, not even the body tags.

  • Use the #+BEGINSRC and #+ENDSRC tags to enclose your code, and automatically htmlize
    it. The cool thing with that is it uses the emacs fontlock support already defined for
    your language, i.e. #+BEGINSRC haxe works (if you have haXe mode).

Column Editing

Checkout this video on emacs sophisticated column
editing.http://www.vimeo.com/1168225?pg=embed&sec=1168225

Easymenu

Make your own top level menus in emacs.

(require 'easymenu)

(easy-menu-define blackdog-menu global-map "MyMenu"
  '("Blackdog"
    ["New Blog"  (weblogger-start-entry )]

     ("Org"
       ["html"  (org-export-as-html 3 nil nil "tt" t)])

     ("Gist"
      ["Create" (gist-region-or-buffer)]
      ["Fetch" (gist-fetch)])

     ("Misc"  ;; submenu
       ["Save & exit" (save-buffers-kill-emacs t)]
)))

Emacs-Fu

Good site where I found most of these tips

http://emacs-fu.blogspot.com/

Advertisements

From → emacs

Leave a Comment

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

%d bloggers like this: