Skip to content

Instantly share code, notes, and snippets.

@conao3
conao3 / .xinitrc
Last active April 24, 2020 11:02
slack/emacs-jp/emacs-xim
# Disable access control for the current user.
xhost +SI:localuser:$USER
# Make Java applications aware this is a non-reparenting window manager.
export _JAVA_AWT_WM_NONREPARENTING=1
# Set default cursor.
xsetroot -cursor_name left_ptr
# Set keyboard repeat rate.
@conao3
conao3 / leaf.el-CONTRIBUTING.md
Last active June 3, 2019 17:52
leaf.el-CONTRIBUTING

Contributing leaf.el

Here is how software developers can contribute to leaf.el.

leaf.el is planning to attach to Emacs, so you need to sign FSF to promote it.

Copyright assignments

Fill below form and send assign@gnu.org. You also find more information at org-mode contribution page.

;; 必ず'aを返す関数の宣言
(defun return-symbol ()
'a)
;; => return-symbol
;; return-symbolの動作確認
(return-symbol)
;; => a
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
@conao3
conao3 / 3-2.c
Last active November 6, 2018 15:39
#include <regex.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int strreplace(char *s_src, char *s_search, char *s_replace) {
char *pos, *rest;
unsigned long src_len, search_len, replace_len, diff_len;
/*
import cv2
import numpy as np
from matplotlib import pyplot as plt
import requests
import copy
from time import sleep
def myfunc(v):
pass
#!/bin/sh
version=26.1
patchversion=7.1
iconversion=3.0
installprefix=`pwd`/emacs-mac-build
app_dir=$installprefix/Emacs.app/Contents/Resources
compver=x86_64-apple-darwin`uname -r`
#!/bin/sh
version=25.3
patchversion=6.9
iconversion=3.0
installprefix=`pwd`/emacs-mac-build
app_dir=$installprefix/Emacs.app/Contents/Resources
compver=x86_64-apple-darwin`uname -r`
#!/bin/sh
version=24.5
patchversion=5.9
installprefix=`pwd`/emacs-mac-build
app_dir=$installprefix/Emacs.app/Contents/Resources
compver=x86_64-apple-darwin`uname -r`
# download sources
@conao3
conao3 / auto-save-buffer.el
Created May 12, 2017 04:55
auto-save-buffer for Emacs
;;
;; auto-save-buffers.el
;;
;; http://0xcc.net/misc/auto-save/
;; http://0xcc.net/misc/auto-save/auto-save-buffers.el
;;
;; 元のコードは山岡克美氏が書いてくださった (ELF:01128)
;;
;; 使い方:
;;