UP | HOME

Emacs

My .emacs

Table of Contents

use mouse in Emacs 2012-05-18 Fri

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:

  1. double click and then drag to select words instead of characters
  2. 3-clicks and then drag to select lines instead of characters
  3. right click to select text between current cursor and right click point
  4. Ctr-right click shows mode menu
  5. Ctr-left click shows buffers menu (not really useful)
  6. Shift-left chose font (not really useful)

Emacs 24

use the new package system

ONEDAY use el-get (.el files can not be compiled, due to emacs 23?)

add (default) laucher in Ubuntu    ATTACH

  • copy emacs-snapshot.desktop from /usr/share/applications/ to .local/share/applications
  • edit as wish, my version: emacs.desktop

Changing text encoding in emacs 2011-05-12 Thu

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

ONEDAY inlucde piwik code in exported html

learn from zim and hamster 2012-05-16 Wed

WYSIWYG:

  • inline display images
    use org-display-inline-images or enable it by default: (setq org-startup-with-inline-images t)
  • inline preview equations
    C-c C-x C-l to preview equations inline, C-c C-c to disable
  • ONEDAY inline plots

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

notify logging state: notify-send and TTS

  • DONE test notif
    DEADLINE: 2012-05-16 Wed 12:00
    • State "DONE" from "TODO" 2012-05-16 Wed 12:29

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 2011-05-12 Thu

C-c .

DONE Calendar Synchronization

CLOSED: 2011-06-06 Mon 12:06

image/ditaa/calendar_sync_c7ef342db63b3f2c4b6c84f19f9b33979215e3b5.png

DONE spilt xy to different files

CLOSED: 2011-05-11 Wed 15:37

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

CLOSED: 2010-04-26 Mon 15:05

DONE create a new to do list

CLOSED: 2010-04-26 Mon 15:05

ditaa

ONEDAY pymacs

define a face

move from muse-mode to org-mode

move some tips from muse to org

DONE include piwik code

CLOSED: 2010-05-11 Tue 17:38

DONE export to html

CLOSED: 2010-04-24 Sat 12:46

2012-05-18 12:52:06 CEST © Xu Yuan (xuyuan.cn@gmail.com) Proudly powered by Org version 7.8.10 with Emacs version 24. Validate XHTML 1.0