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 / buffer.el
Created December 2, 2016 01:57
major mode for fast boot
;;; buffer.el --- Temporal buffer for fast boot
(defun buffer-mode ()
"Buffer Mode"
(interactive)
(setq mode-name "Buffer")
(setq major-mode 'buffer-mode)
;; (setq buffer-mode-map (make-keymap))
;; (use-local-map buffer-mode-map)
(run-hooks 'buffer-mode-hook))
@takaxp
takaxp / org-mac-papers-insert-front-most-paper-link.el
Last active November 17, 2020 15:52
Additional descriptor to grab a link to a paper stored in Papers.app
@takaxp
takaxp / emacs-25.2-inline.patch
Created April 25, 2017 09:32
An inline-patch for Emacs-25.2
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-25 16:52:18.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
@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
@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 / 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 / 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
#!/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 / 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
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