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 / example-setting-org-tempo.el
Created May 19, 2018 08:04
An example setting for org-tempo.el
(when (version< "9.1.4" (org-version))
(add-to-list 'org-modules 'org-tempo))
(add-to-list 'org-structure-template-alist
(if (version< "9.1.4" (org-version))
'(?S . "src emacs-lisp")
'("S" "#+BEGIN_SRC emacs-lisp\n?\n#+END_SRC" "<src lang=\"emacs-lisp\">\n\n</src>")))
@takaxp
takaxp / moom-font-test.org
Last active May 25, 2018 02:46
Checking fonts in a buffer

0--------1---------2---------3---------4---------5---------6---------7---------8 あいうえおあいうえおアイウエオアイウエオあいうえおあいうえおアイウエオアイウエオ

windowJPASCIIscale(J)scale(A)gradient
mac, nsOsakaMonaco1.21.0(/ 50.0 30)
w32MS ゴシックMS ゴシック1.01.0(/ 50.0 25)
xTakaoGothicTakaoGothic1.01.0(/ 50.0 25)
@takaxp
takaxp / ns-private.patch
Last active March 20, 2018 09:44
ns private patch
diff -crN emacs-26.0.91/src/nsfns.m emacs-26.0.91_patch/src/nsfns.m
*** emacs-26.0.91/src/nsfns.m 2018-03-20 18:41:09.000000000 +0900
--- emacs-26.0.91_patch/src/nsfns.m 2018-03-20 18:42:52.000000000 +0900
***************
*** 1231,1239 ****
x_default_parameter (f, parms, Qborder_width, make_number (0),
"borderwidth", "BorderWidth", RES_TYPE_NUMBER);
! x_default_parameter (f, parms, Qinternal_border_width, make_number (2),
! "internalBorderWidth", "InternalBorderWidth",
#!/bin/sh
cd ~/Desktop
mkdir emacs_ns
cd ~/Desktop/emacs_ns
VERSION=26.0.91
#curl -LO http://ftpmirror.gnu.org/emacs/emacs-$VERSION.tar.gz
curl -LO ftp://alpha.gnu.org/gnu/emacs/pretest/emacs-$VERSION.tar.xz
curl -LO https://gist.githubusercontent.com/takaxp/5294b6c52782d0be0b25342be62e4a77/raw/9c9325288ff03a50ee26e4e32c8ca57c0dd81ace/emacs-25.2-inline-googleime.patch
tar zxvf emacs-$VERSION.tar.xz
@takaxp
takaxp / advice:org-return.el
Created January 5, 2018 05:06
advice:org-return
(with-eval-after-load "org"
(defun advice:org-return (f &optional arg)
"An extension for checking invisible editing when you hit the enter."
(interactive "P")
(org-check-before-invisible-edit 'insert)
(apply f arg))
(advice-add 'org-return :around #'advice:org-return))
#!/bin/sh
# The original script is here: https://gist.githubusercontent.com/railwaycat/10988446/raw/990dde69ea728b9ceff68dd649ad2112c5692ef0/build-emacs.app.sh
rootdir=$HOME/Desktop/emacs_mac_port
if [ ! -d $rootdir ]; then
mkdir $rootdir
fi
installprefix=$rootdir/build
app_dir=$installprefix/Emacs.app/Contents/Resources
@takaxp
takaxp / proposed-chages-r1.patch
Created September 11, 2017 05:42
proposed-changes(rev)
*** yatex.el 2017-09-11 14:41:00.000000000 +0900
--- yatex/yatex.el 2017-09-11 14:41:36.000000000 +0900
***************
*** 5,10 ****
--- 5,18 ----
;;; The latest version of this software is always available at;
;;; https://www.yatex.org/
+ ;; This program is distributed as a free software. You can
+ ;; use/copy/modify/redistribute this software freely but with NO warranty to
@takaxp
takaxp / proposed-changes.patch
Last active September 11, 2017 02:53
proposed patch for yatex
*** yatex/yatex.el 2017-09-11 11:22:34.000000000 +0900
--- yatex.el 2017-09-11 11:52:33.000000000 +0900
***************
*** 1,16 ****
! ;;; yatex.el --- Yet Another tex-mode for emacs //–ì’¹// -*- coding: sjis -*-
! ;;; (c)1991-2017 by HIROSE Yuuji.[[email protected]]
! ;;; Last modified Sun Sep 10 21:19:43 2017 on firestorm
! ;;; $Id$
! ;;; The latest version of this software is always available at;
! ;;; https://www.yatex.org/
@takaxp
takaxp / yatex.el
Last active September 11, 2017 02:53
A propose changes on yatex to re-distribute from MELPA
;;; yatex.el --- Yet Another tex-mode //野鳥// -*- coding: sjis -*- -*- lexical-binding: t; -*-
;; Copyright (C) 2017 HIROSE Yuuji.
;; Author: HIROSE Yuuji.[[email protected]]
;; Keywords: tex
;; Version: 1.81
;; URL: https://www.yatex.org/
;; This program is distributed as a free software. You can
@takaxp
takaxp / emacs-25.2-inline-googleime.patch
Last active December 1, 2019 00:25
An inline patch for Emacs 25.2 (especially, locale: en + google IME user)
diff -crN emacs-25.2_orig/configure.ac emacs-25.2/configure.ac
*** emacs-25.2_orig/configure.ac 2017-02-03 23:34:30.000000000 +0900
--- emacs-25.2/configure.ac 2017-04-26 14:45:40.000000000 +0900
***************
*** 1915,1921 ****
INSTALL_ARCH_INDEP_EXTRA=
fi
! NS_OBJC_OBJ="nsterm.o nsfns.o nsmenu.o nsselect.o nsimage.o $ns_fontfile"
fi