Emacs
My .emacs
Table of Contents
- use mouse in Emacs
- Emacs 24
- Changing text encoding in emacs
- Org-mode
- ditaa
- pymacs
- define a face
- move from muse-mode to org-mode
use mouse in Emacs
Emacs was born before mouse, so most Emacsers use keyboards 'only' and beleive it is faster! However, it is not true, espically for some taskes, and there was long discussion about Keyboard vs. The Mouse.
In fact, today mouse in Emacs is also powerful as (or than) other editors, for example:
- double click and then drag to select words instead of characters
- 3-clicks and then drag to select lines instead of characters
- right click to select text between current cursor and right click point
- Ctr-right click shows mode menu
- Ctr-left click shows buffers menu (not really useful)
- Shift-left chose font (not really useful)
Emacs 24
use the new package system
add (default) laucher in Ubuntu ATTACH
- copy
emacs-snapshot.desktopfrom/usr/share/applications/to.local/share/applications - edit as wish, my version: emacs.desktop
Changing text encoding in emacs
C-x RET f utf-8 RET
Org-mode skill
org-protocol: capture from firefox
register org-protocol in firefox
In ubuntu 12.04 / Gnome 3, I can not register protocol by methods given in org-protocol.el. Instead, I edit ~/.local/share/applications/mimeapps.list, my hope was add x-scheme-handler/org-protocol=org-protocol.desktop there, and org-protocol.desktop just starts emacsclient. There when I click the link in firefox, the application pops up (with org-protocol), but when I chose it – nothing happens. however I can choose another applicaiton, so I choose emacsclient in the system path, and it works!
ONEDAY even cooler functionality in Defining custom handlers for use with org-protocol
learn from zim and hamster
WYSIWYG:
autosave
Note: I just enable save the same file globally, who needs to care about C-s, which makes my little finger pain; because I press it too often!
auto commit in git: git-wip (git-wip-mode)
attach files: copy files to sub folder, insert links/ open/edit attachments
C-c C-a
use keywords: oneday, waiting (from GTD)
ONEDAY what can org do?
- make notes
- organized in tree struct
- export different formats
- …
- create a website like this
- organize tasks (schedule, calendar)
insert time stamp
C-c .
DONE Calendar Synchronization
DONE spilt xy to different files
org-bable
examples:
- ruby
require 'date' "This file was last evaluated on #{Date.today}"
- python
import time print("Hello, today's date is %s" % time.ctime()) print('Two plus two is') return 2 + 2
DONE baisc org file structure
DONE create a new to do list
ditaa
move from muse-mode to org-mode
move some tips from muse to org
DONE include piwik code
DONE export to html