Skip to content

Instantly share code, notes, and snippets.

View tsuu32's full-sized avatar
👾

Masahiro Nakamura tsuu32

👾
View GitHub Profile
;;; w32-ime-mode.el --- Yes another initializer for W32-IME
;;; Commentary:
;; Add following code to your init file instead of (w32-ime-initialize):
;;
;; (require 'w32-ime-mode)
;; (w32-ime-mode)
;;; Code:
@tsuu32
tsuu32 / settings_iterm2_material_design.json
Created August 6, 2021 15:40
Windows Terminal color scheme ported from iTerm2 Material Design
{
"background": "#263238",
"black": "#546E7A",
"blue": "#40C4FF",
"brightBlack": "#B0BEC5",
"brightBlue": "#80D8FF",
"brightCyan": "#A7FDEB",
"brightGreen": "#B9F6CA",
"brightPurple": "#FF80AB",
"brightRed": "#FF8A80",
@tsuu32
tsuu32 / gitb.json
Created August 6, 2021 15:34
Scoop App Manifest for gitb
{
"version": "2.4.0",
"description": "A command line tool for using Backlog’s git comfortably.",
"homepage": "https://gitb.vvatanabe.com/",
"license": "MIT",
"architecture": {
"64bit": {
"url": "https://github.com/vvatanabe/gitb/releases/download/2.4.0/gitb_2.4.0_windows_amd64.zip",
"hash": "ff21d5b7c2d7d38bf6067b63a2e6cde1dbe38dbdf0302f220f5354196a59c3c8",
"extract_dir": "gitb_2.4.0_windows_amd64"
;;; scsnowman-zrchristmas.el --- zrchristmas shape for scsnowman.el -*- lexical-binding: t -*-
;; Copyright (C) 2020 by Masahiro Nakamura
;; Author: Masahiro Nakamura <tsuucat@icloud.com>
;; Version: 0.0.1
;;; Commentary:
;; A `zrchristmas' shape definition for scsnowman.el.
(require 'ivy)
(require 'migemo)
(defun my/migemo-get-pattern-shyly (word)
(replace-regexp-in-string
"\\\\("
"\\\\(?:"
(migemo-get-pattern word)))
(defun my/ivy--regex-migemo-pattern (word)
(require 'xwwp)
(defun my/xwwp-clear-page (&optional xwidget)
"ページまっさら"
(interactive)
(let ((xwidget (or xwidget (xwidget-webkit-current-session))))
(xwwp-html-inject-style xwidget "__my_xwwp_clear_page_style" "body { display: none; }\\n")))
(defun my/xwwp-rotate-page (&optional xwidget)
"ぐるぐるページ"
(require 'jsonrpc)
(defclass jsonrpc-process-raw-connection (jsonrpc-connection)
((-process
:initarg :process :accessor jsonrpc--process
:documentation "Process object wrapped by the this connection.")
(-on-shutdown
:accessor jsonrpc--on-shutdown
:initform #'ignore
:initarg :on-shutdown
// https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/TextUILayer/Tasks/CreateTextViewProg.html
// To execute it, run:
// `$ clang textview_sample.m -framework Cocoa && ./a.out`
#import <Cocoa/Cocoa.h>
int main() {
@autoreleasepool {
NSApplication* app = [NSApplication sharedApplication];
From dacd2d63122622ddb967ad8bca46c158bcbfb85c Mon Sep 17 00:00:00 2001
From: Masahiro Nakamura <tsuucat@icloud.com>
Date: Fri, 14 Feb 2020 04:29:34 +0900
Subject: [PATCH] marked text face & Isearch patch
---
lisp/isearch.el | 3 +--
lisp/term/ns-win.el | 43 ++++++++++++++++++++++++++++++++++---------
src/keyboard.c | 7 ++++---
src/nsterm.m | 21 +++++++++++++++++++++
#!/bin/bash
# Comment out to avoid an error on macOS
# set -e
DIRNAME=tl-`date +%Y_%m_%d_%H_%M_%S`
if [[ $TRAVIS_OS_NAME == 'osx' ]]; then
export PATH=$PATH:$HOME/texlive/bin/x86_64-darwin
else