Skip to content

Instantly share code, notes, and snippets.

View takaxp's full-sized avatar
🦄
Emacs Org Mode

Takaaki ISHIKAWA takaxp

🦄
Emacs Org Mode
View GitHub Profile
@takaxp
takaxp / e2wm-parallel-pack
Created November 7, 2011 15:30
e2wm のパラレルパースペクティブもどきとフレームのキーボードによる移動
;;;; e2wm のパラレルパースペクティブもどきとフレームのキーボードによる移動
;;;; Last Update: 2011-11-07@23:37
;;;; Takaaki ISHIKAWA <takaxp@ieee.org>
;;
;; なにこれ:
;; e2wm の2画面(M-x e2wm:dp-two)から左右の従属関係を取り去る仕掛け
;; => 概念図(http://dl.dropbox.com/u/2440/e2wm/e2wm%2Borg-mode.pdf)
;; e2wm と,このelを導入後,M-x change-frame-width-double (C-x =) で
;; 2画面を並列関係で使うことができる.またキーボードからフレームの位置を変えられる.
;;
@takaxp
takaxp / kyoko-in-emacs
Created November 10, 2011 09:46
KyokoさんとEmacs
;; インストール方法:
;; 以下を .emacs に貼りつけてください.
;; kyoko さんとお知り合いでない人:
;; => http://www.mactechlab.jp/products-report/16673.html
;; 注意)Kyoko さんは Mac(Lion) じゃないと遊びに来てくれません.
;; [#A] 起動時に Kyoko さんに応援してもらう
(shell-command-to-string "say -v Kyoko がんばってください")
;; [#B] 定時になったら Kyoko さんにねぎらってもらう
@takaxp
takaxp / org2doku
Last active October 14, 2019 06:26 — forked from takumikinjo/org2doku
Convert Emacs org-mode formatted text to Dokuwiki formatted one.
#!/opt/local/bin/perl
#
# Modified by @takaxp
# Last Update: 2014-04-11@22:27
# 2013-12-25: skip source blocks specified as ":exports no"
# 2012-01-09: support date([YYYY-MM-DD XX]) insertion
# 2012-01-09: support #+BEGIN_SRC
# 2011-11-16: use strict and warnings
# 2011-11-16: Add conversion from numeric items to ` - '.
# 2011-11-16: Skip headers, if #+TITLE: is, use it as the top headline.
@takaxp
takaxp / evnt2org.py
Created December 17, 2011 07:09 — forked from yono/evnt2org.py
Evernote から Export した HTML を Org-mode 形式に変換するスクリプト
#!/usr/bin/env python
# -*- coding:utf-8 -*-
"""
evnt2org
convert html text that is exported from Evernote to org-mode
"""
import urllib
@takaxp
takaxp / gist:1520598
Created December 26, 2011 05:56
TAB で direx のツリーを開く
;; Download and install direx.el from https://github.com/m2ym/direx-el
(when (require 'direx nil t)
(define-key direx:direx-mode-map (kbd "TAB") 'direx:maybe-find-node))
@takaxp
takaxp / gist:1532344
Created December 29, 2011 06:18
inline-patch for Emacs23
diff -r -p -x '*.elc' ../emacs-23.2.94-0/lisp/term/ns-win.el lisp/term/ns-win.el
*** ../emacs-23.2.94-0/lisp/term/ns-win.el 2011-01-27 05:35:09.000000000 +0900
--- lisp/term/ns-win.el 2011-02-28 13:08:01.000000000 +0900
*************** The properties returned may include `top
*** 317,322 ****
--- 317,323 ----
(cons (logior (lsh 0 16) 12) 'ns-new-frame)
(cons (logior (lsh 0 16) 13) 'ns-toggle-toolbar)
(cons (logior (lsh 0 16) 14) 'ns-show-prefs)
+ (cons (logior (lsh 0 16) 15) 'mac-change-input-method)
@takaxp
takaxp / my-find-headings
Created January 12, 2012 07:05
my-find-headings
(defun my-find-headings ()
(let ((eob (point-max))
(head-list '()))
(save-excursion
(goto-char (point-min))
(while (when (search-forward-regexp "^\*\\([^*]\\|$\\)" eob t)
(setq head-list (cons (match-beginning 0) head-list))
(forward-line))))
(reverse head-list)))
@takaxp
takaxp / EmacsScript
Created January 13, 2012 02:02
EmacsScript
#!/usr/bin/emacs --script
(message "Hello World!")
@takaxp
takaxp / my-mode-line-modes
Created January 17, 2012 13:22
Abbreviation of the word "Narrow" in mode line
(defvar my-narrow-display " N")
(setq mode-line-modes
(mapcar (lambda (entry)
(if (and (stringp entry)
(string= entry "%n"))
'(:eval (if (and (= 1 (point-min))
(= (1+ (buffer-size)) (point-max))) ""
my-narrow-display)) entry))
mode-line-modes))
@takaxp
takaxp / gridsheet.org
Created January 30, 2012 14:31
A grid sheet by org-mode