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 / my-emacs-mac.patch
Last active September 15, 2016 14:50
my-emacs-mac.patch
*** src/lisp/term/mac-win.el 2016-09-15 23:40:56.000000000 +0900
--- dst/lisp/term/mac-win.el 2016-09-15 22:11:59.000000000 +0900
***************
*** 1542,1628 ****
(2 . mac-ts-selected-converted-text)) ; NSUnderlineStyleThick
"Alist of NSUnderlineStyle vs Emacs face in marked text.")
(defun mac-text-input-set-marked-text (event)
(interactive "e")
(let* ((ae (mac-event-ae event))
@takaxp
takaxp / emacs-25.1-inline.patch
Last active April 25, 2017 11:14
An inline-patch for emacs-25.1 (入力時のチラつきなしバージョン)
diff -crN emacs-25.1-orig/configure.ac emacs-25.1-new/configure.ac
*** emacs-25.1-orig/configure.ac 2016-07-24 23:56:46.000000000 +0900
--- emacs-25.1-new/configure.ac 2016-09-13 01:09:24.000000000 +0900
***************
*** 1916,1922 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o $ns_fontfile"
fi
@takaxp
takaxp / update-cask.sh
Created September 3, 2016 10:59
update-cask.sh
#!/bin/sh
# exec cd ~/.emacs.d && cask upgrade-cask if you upgrade cask itself.
CASKPATH=~/.emacs.d/.cask
#VERSION=24.5.1
#VERSION=25.0.95.1
VERSION=25.1.1
SUBDIR=package
BACKUPDIR=~/Dropbox/backup
@takaxp
takaxp / my:init-loading-time.el
Last active March 30, 2020 00:46
my:init-loading-time
;; .emacs/init.el の先頭に記述
(defconst before-load-init-time (current-time))
(defun my:init-loading-time ()
"Loading time of user init files including time for `after-init-hook'."
(let ((time1 (float-time
(time-subtract after-init-time before-load-init-time)))
(time2 (float-time
(time-subtract (current-time) before-load-init-time))))
(message (concat "Loading init files: %.0f [msec], "
"of which %.f [msec] for `after-init-hook'.")
diff -crN emacs-25.0.95/configure.ac emacs-25.0.95_patched/configure.ac
*** emacs-25.0.95/configure.ac 2016-06-11 07:06:02.000000000 +0900
--- emacs-25.0.95_patched/configure.ac 2016-06-22 12:01:22.000000000 +0900
***************
*** 1916,1922 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o $ns_fontfile"
fi
diff -crN emacs-25.0.90/configure.ac emacs-25.0.90_patched/configure.ac
*** emacs-25.0.90/configure.ac 2016-01-31 00:00:54.000000000 +0900
--- emacs-25.0.90_patched/configure.ac 2016-01-31 15:08:10.000000000 +0900
***************
*** 1896,1902 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o $ns_fontfile"
fi
(with-eval-after-load "helm-swoop"
;; カーソルの単語が org の見出し(*の集まり)のとき検索対象にしない.
(setq helm-swoop-pre-input-function
#'(lambda()
(unless (thing-at-point-looking-at "^\\*+")
(thing-at-point 'symbol)))))

はじめてのOrg

[1/14] 備忘録

表示サイクル

  • S-<TAB> の連打で,ツリーの内容を表示したり閉じたりできます.
  • 「*」で始まる行を「見出し」と言います
  • 見出しの上にカーソルを置いて <TAB> を押すと,その見出し以下の全てのツリーの詳細を閉じたり開いたりできます.
  • TODO キーワードを付けるのは,レベル2の見出しに限定するのをオススメします.
@takaxp
takaxp / emacs-24.5-inline.patch
Created April 11, 2015 15:47
An inline patch for Emacs 24.5
diff -crN emacs-24.5/configure.ac emacs-24.5_patched/configure.ac
*** emacs-24.5/configure.ac 2015-04-02 16:23:06.000000000 +0900
--- emacs-24.5_patched/configure.ac 2015-04-12 00:10:11.000000000 +0900
***************
*** 1782,1788 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
fi
@takaxp
takaxp / emacs-24.4-inline.patch
Created December 24, 2014 02:44
An inline patch for Emacs 24.4
diff -Nrc emacs-24.4_orig/configure.ac emacs-24.4_patched/configure.ac
*** emacs-24.4_orig/configure.ac 2014-12-07 01:37:53.000000000 +0900
--- emacs-24.4_patched/configure.ac 2014-12-07 01:40:06.000000000 +0900
***************
*** 1782,1788 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o nsfont.o $macfont_file"
fi